Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
wxSmith maybe have a bug on "event code"
rcoll:
--- Quote from: ppv on February 20, 2010, 01:40:05 am ---I had tried a lot of things but I don't understand why putting the (wxPaintDC dc(this);) doesn't work for me.
I'll apreciate any suggestion.
best regard
ppv
--- End quote ---
The "this" in wxPaintDC(this) refers to the wrong object; it normally refers to the parent frame or dialog of yur project, not to the particular panel (or other object) that you want to paint. Therefore your are creating the wrong wxPaintDC. You MUST create a wxPaintDC for the individual component that called the paint event.
Ringo
ppv:
THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!!!!! that's fix it.
Navigation
[0] Message Index
[*] Previous page
Go to full version