News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

[wxSmith][error] refreshing background color in windows

Started by claudio, October 30, 2009, 08:51:39 PM

Previous topic - Next topic

claudio

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

ollydbg

You video is too large, > 12M, I need 40min to download,  :(.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

blueshake

Quote from: ollydbg on October 31, 2009, 01:25:39 AM
You video is too large, > 12M, I need 40min to download,  :(.
I downloaded in 7 minutes . :wink:
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

blueshake

Actually this problem is nothing to do with codeblock.
you need to add these codes:Panel1->Refresh(); :lol:
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

claudio