Hopefully this is not a FAQ (although I didn't find anything when searching)
Anyway,
I have an application that uses both wxbuttons and wxpixmapbuttons, and
while the wxbuttons have the winXP look, the pixmapbuttons have the old
look, which looks plain ugly.. How do I get the xp look on the pixmapbuttons
also (assuming it is possible..)
Hopefully this is not a FAQ (although I didn't find anything when searching)
Anyway,
I have an application that uses both wxbuttons and wxpixmapbuttons, and
while the wxbuttons have the winXP look, the pixmapbuttons have the old
look, which looks plain ugly.. How do I get the xp look on the pixmapbuttons
also (assuming it is possible..)
It's not. The wx.BitmapButton class is owner-drawn, and so the themed drawing is not active for the native widget.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
Simon Dahlbacka wrote:
> Hopefully this is not a FAQ (although I didn't find anything when
searching)
>
> Anyway,
>
> I have an application that uses both wxbuttons and wxpixmapbuttons,
and
> while the wxbuttons have the winXP look, the pixmapbuttons have the
old
> look, which looks plain ugly.. How do I get the xp look on the
pixmapbuttons
> also (assuming it is possible..)
It's not. The wx.BitmapButton class is owner-drawn, and so the
themed
drawing is not active for the native widget.
ouch!
So that means that I have to go with the old (non-xp) look also for the
wxbuttons in order to get a consistent look?
Or would it be possible (with reasonable amount of work, that is) to
modify something (wxbitmapbutton in wxwidgets presumably) to make it use
the above mentioned themed drawing?
Pointers where to start appreciated, since I'm not that familiar with
neither wxwidgets internals nor win api...
Or would it be possible (with reasonable amount of work, that is) to
modify something (wxbitmapbutton in wxwidgets presumably) to make it use
the above mentioned themed drawing? Pointers where to start appreciated, since I'm not that familiar with
neither wxwidgets internals nor win api...
A class to check if running with themes and to dynamically load the theme engine api is in: