Statusbar and button height - Mac

Hello,

I want to put a button on a statusbar, so I used the
EnhancedStatusbar from Andrea.By the way, thanks to
Andrea and others for sharing their knowledge and work.

Unfortunately, while it is great on Windows, it is difficult
to use under Mac,because the statusbar height cannot be
changed on Mac (see
http://article.gmane.org/gmane.comp.python.wxpython/29320)

Consequently, after the creation of the button, I tried to
reduce its size using:

button.SetMinSize((50,5))
button.Layout()

which does nothing and also by putting (after I have added
the button to the sizer):

Sizer.SetItemMinSize(button,50,5)

At the end, the result is worse than before (the button seems
to go a little bit down on tha statusbar).

May be someone already met this problem and managed to solve it ?

Thanks for your tips
Dominique

DomDom wrote:

Hello,

I want to put a button on a statusbar, so I used the EnhancedStatusbar from Andrea.By the way, thanks to
Andrea and others for sharing their knowledge and work.

Unfortunately, while it is great on Windows, it is difficult to use under Mac,because the statusbar height cannot be changed on Mac (see
http://article.gmane.org/gmane.comp.python.wxpython/29320)

Consequently, after the creation of the button, I tried to
reduce its size using:

button.SetMinSize((50,5))
button.Layout()

which does nothing and also by putting (after I have added the button to the sizer):

Sizer.SetItemMinSize(button,50,5)

At the end, the result is worse than before (the button seems to go a little bit down on tha statusbar).

Mac buttons also can't change their height. You might want to try using a bitmap button instead because it's height can change. Or perhaps the wx.lib.buttons.ThemedGenButton would be a good choice.

ยทยทยท

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

Robin Dunn <robin <at> alldunn.com> writes:

Mac buttons also can't change their height. You might want to try using
a bitmap button instead because it's height can change. Or perhaps the
wx.lib.buttons.ThemedGenButton would be a good choice.

OK ...!!! I better understand now...
I was thinking about putting a bitmap also. I'll try your advice.
Thank you very much Robin

Dominique