wxMSW: Incorrect background on wxButtons?
Robin Dunn
robin at alldunn.com
Thu Apr 12 13:05:04 PDT 2007
Tommy W wrote:
> On Wednesday 11 April 2007 23:36, Robin Dunn wrote:
>> Are you sure that you used the panel for the parent of the wxButton when
>> you created it?
>
> Quite sure actually.
>
> wxPanel *panel = new wxPanel(this,wxID_ANY);
>
> panel->SetBackgroundColour(GetBackgroundColour());
> panel->SetForegroundColour(GetForegroundColour());
Ah, you didn't mention that you were doing this. AFAIK the XP themed
button expects to be placed on a themed panel, and the button draws
itself accordingly using the theme APIs.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wx-users
mailing list