Text in ToolBarTool

Questions about wxWidgets running on MS.NET, mono or Portable.NET ? Ask it here !
Post Reply
leemccarthyn
In need of some credit
In need of some credit
Posts: 1
Joined: Thu Feb 21, 2019 6:23 pm

Text in ToolBarTool

Post by leemccarthyn » Thu Feb 21, 2019 6:32 pm

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)

User avatar
doublemax
Moderator
Moderator
Posts: 13413
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Text in ToolBarTool

Post by doublemax » Thu Feb 21, 2019 6:47 pm

I don't know if wx.NET exposes this functionality, but in the C++ version you just add the wxTB_HORZ_TEXT flag when creating the toolbar. This means you can only enable if for the whole toolbar, not individual tools.
Use the source, Luke!

Post Reply