Code::Blocks Forums

User forums => Help => Topic started by: claudio on October 30, 2009, 08:51:39 pm

Title: [wxSmith][error] refreshing background color in windows
Post by: claudio on October 30, 2009, 08:51:39 pm
I am using:

CodeBlocks 8.02 with MingW32 bundled
wxWidgets 2.8
wxSmith

I've created a sample project for wxWidgets 2.8 and using wxSmith I've created a black form with a colored panel (called Panel1) and a button (Button1) for changing the panel color.
The panel doesn't change the color at all, it only changes when I hide the panel...it seems a problem in refreshing the window.

I made a video to explain it, please download it:)
http://www.tequilasmind.com/cast.avi
Title: Re: [wxSmith][error] refreshing background color in windows
Post by: ollydbg on October 31, 2009, 01:25:39 am
You video is too large, > 12M, I need 40min to download,  :(.
Title: Re: [wxSmith][error] refreshing background color in windows
Post by: blueshake on October 31, 2009, 05:34:22 am
You video is too large, > 12M, I need 40min to download,  :(.
I downloaded in 7 minutes . :wink:
Title: Re: [wxSmith][error] refreshing background color in windows
Post by: blueshake on October 31, 2009, 06:01:11 am
Actually this problem is nothing to do with codeblock.
you need to add these codes:
Code
Panel1->Refresh();
:lol:
Title: Re: [wxSmith][error] refreshing background color in windows
Post by: claudio on October 31, 2009, 11:42:43 am
awesome!

Thanks :))