[wx 2.8.7 GTK2 Linux gcc] internal mechanisms

Phil White mrmetis at hotmail.com
Thu Feb 7 10:49:10 PST 2008


  Hello, this is my first post on dev list,

 I've come across a problem recently, and it appears only on wxGTK, not und=
er wxMSW nor wxMAC.

Here's the problem: I derivated a wxPanel to another class. In this class,i=
t contains a control (wxControl).


(the whatever class is a child of another wxPanel)

class whatever: public wxPanel
{
  ...
  wxMyControl* control;
}


class wxMycontrol: public wxControl
{
 ...
}

the panel (whatever) paints a background on the OnPaint's event, and the co=
ntrol paints a text with no background on the screen.

On wxMSW and wxMac, it works great, it takes the parent background. But on =
wxGTK2, it takes the grand parent's background. If I derivate my control fr=
om a wxStaticText, it works in wxGTK too. But I dont' want to. I'd want to =
know how this behaviour occurs when I derivate it from a wxControl. =


Thansk

_________________________________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20080207/4b5=
f89a4/attachment.htm


More information about the wx-users mailing list