When using a wxButton(parent, ID,"Line1\nLine2"), two lines are displayed under Linux; but under MS Windows it's just a single line with the "\n" being a square. Is there a reason for that? Is there a style for wxButton to enable MULTILINE Button Lables?
When using a wxButton(parent, ID,"Line1\nLine2"), two lines are displayed under Linux; but under MS Windows it's just a single line with the "\n" being a square. Is there a reason for that? Is there a style for wxButton to enable MULTILINE Button Lables?
peter
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org
I had tried this already, but it does not work. Any other ideas?
peter
This is a little convoluted sounding, but you could use a recent version of FancyText to generate a bitmap of the text and then pass that to a bitmap button.
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org
When using a wxButton(parent, ID,"Line1\nLine2"), two lines are displayed under Linux; but under MS Windows it's just a single line with the "\n" being a square. Is there a reason for that? Is there a style for wxButton to enable MULTILINE Button Lables?
IIRC, when multi-line text in the native button control was enabled some other common usage of the button was broken so it was disabled again. (Sorry I don't rememeber the details.)
The wxGenButton (see wxPython/lib/buttons.py) could probably be updated to display multiple lines, but it wouldn't look the same as the native buttons of course.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
IIRC, when multi-line text in the native button control was enabled some other common usage of the button was broken so it was disabled again. (Sorry I don't rememeber the details.)
Thanks for the explanation. I will try with something else then.
peter