Text in ToolBarTool
Text in ToolBarTool
Is there a way to add text to a ToolBarTool so it appears right next to the Bitmap loaded? Specifically, I am trying to duplicate the SWF functionality of the System.Windows.Forms.ToolBarButton.Text property (which displays text next to the bitmap)
-
- In need of some credit
- Posts: 8
- Joined: Thu Oct 28, 2004 11:45 pm
- Location: Victoria, BC, Canada
- Contact:
Do you mean like in this screenshot http://wxnet.sourceforge.net/screenshot ... l-gtk2.jpg ?
Create the toolbar with the wx.ToolBar.wxTB_TEXT style. I don't think wxWidgets has a way to put the text beside the icon though.
Create the toolbar with the wx.ToolBar.wxTB_TEXT style. I don't think wxWidgets has a way to put the text beside the icon though.
Bryan Bulten
http://wxnet.sourceforge.net/
http://wxnet.sourceforge.net/
-
- In need of some credit
- Posts: 8
- Joined: Thu Oct 28, 2004 11:45 pm
- Location: Victoria, BC, Canada
- Contact:
It's from the wxTB_FLAT style, which is supported on Windows and GTK only (according to the wxWidgets documentation).
Bryan Bulten
http://wxnet.sourceforge.net/
http://wxnet.sourceforge.net/
-
- In need of some credit
- Posts: 8
- Joined: Thu Oct 28, 2004 11:45 pm
- Location: Victoria, BC, Canada
- Contact:
Not that I know of. The app in the screenshot was compiled with a wxWidgets version of 2.5.something. So I'm not really sure what's going on - I don't have a Windows box to test it on again at the moment.
Bryan Bulten
http://wxnet.sourceforge.net/
http://wxnet.sourceforge.net/
Figured it out!
When I use the Mono runtime, I get a toolbar that looks like your screenshots (without the button borders). It is only when using the Microsoft.Net framework is when the toolbar looks screwy.
So either Mono is doing something that .Net isn't (and doing it better), or something is strange with wx.net and MS .NET. Either way, I figured it out.
So either Mono is doing something that .Net isn't (and doing it better), or something is strange with wx.net and MS .NET. Either way, I figured it out.