wxMac, PaintEvent

Nusret Taşçı nusi at sofha.de
Sun Sep 17 07:00:59 PDT 2006


Hi,

I have a wxPanel which is a subwindow within a hierarchy of several 
wxPanel/Sizers which all reside in a single instance of 'myDialog' 
(which is derived from wxDialog).
The wxPanel is created by the XRC handler within 
wxXmlResource::Get()->LoadPanel().
The wxWindow Ptr, which I get, seems to be valid. I connect an 
EraseBackground handler (which does absolutly nothing) to eat this event 
and than I connect my Paint handler on it.
Somewhere within the Code, I call Refresh (for the whole dialog and in 
other cases only for the panel).
On MSW, the paint event handler does get called, on Mac (Carbon) this 
doent't happen. I don't get this event, even if I call update() right 
after refresh().
When I manually call the eventhandler, the wxPanel get's painted.
Other event handlers do get called (checkbox etc.).

I use a 1 week old CVS HEAD version. I compile my project with xcode. 
wxWidgets is built with the configure chain (I think).

Can any of you give me a hint of what a Mac Newbie like me could have 
done wrong? Did I do a configuration error?
Is there something like WM_PAINT on mac at all, or does wxWidgets 
emulate that stuff in the idle-loop?


Nusi




More information about the wx-users mailing list