XP style buttons

Hi everybody,

This is my second and last question for now. I use wxPython 2.8 on WinXP/sp2.

I need to have buttons with both text and icons and I use ThemedGenBitmapTextButton. The problems is, the button doesn't show the XP-style "yellow edges" when mouse pointer is over it. Has anybody solved this somehow?

Thanks,
Igor

···

--
Igor Jese, igor@jeseonline.com
http://mockupscreens.com
igor@mockupscreens.com

And in the interests of being welcoming, attached is an updated
wx.lib.buttons.py and a patch against SVN trunk (but it should apply
to 2.8, also).

buttons.py.patch (1.4 KB)

buttons.py (20.5 KB)

···

On 8/23/07, Chris Mellon <arkanes@gmail.com> wrote:

On 8/23/07, Igor Jese <igor@jeseonline.com> wrote:
> Hi everybody,
>
> This is my second and last question for now. I use wxPython 2.8 on
> WinXP/sp2.
>
> I need to have buttons with both text and icons and I use
> ThemedGenBitmapTextButton. The problems is, the button doesn't show the
> XP-style "yellow edges" when mouse pointer is over it. Has anybody solved
> this somehow?
>

The implementation needs relatively minor updates so it's aware of
mouseover and redraws using the correct state. Patches welcome!

Chris Mellon wrote:

···

On 8/23/07, Chris Mellon <arkanes@gmail.com> wrote:

On 8/23/07, Igor Jese <igor@jeseonline.com> wrote:

Hi everybody,

This is my second and last question for now. I use wxPython 2.8 on
WinXP/sp2.

I need to have buttons with both text and icons and I use
ThemedGenBitmapTextButton. The problems is, the button doesn't show the
XP-style "yellow edges" when mouse pointer is over it. Has anybody solved
this somehow?

The implementation needs relatively minor updates so it's aware of
mouseover and redraws using the correct state. Patches welcome!

And in the interests of being welcoming, attached is an updated
wx.lib.buttons.py and a patch against SVN trunk (but it should apply
to 2.8, also).

Thanks. This is something I've had on my ToDo list but hadn't gotten to yet.

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!