I'm wanting to put a radio button on a ToolBar, and I only want a
label (and radio indicator) rather than a bitmap. Is this possible?
There appears to be a RadioLabelTool item defined in ToolBarBase but
I can't find any documentation to say how it is different from a
regular RadioTool (except that it accepts a "label" attribute).
I know I can put a standard RadioButton control on the toolbar but I'd
rather not, unless that is the only way.
When you say RadioLabelTool I assume you are talking about the AddRadioLabelTool() method of the Toolbar class. This just adds a normal button tool to the toolbar that "acts" like a radio button such that only one of the adjacent radio toolbar tools can be in the toggled state at a time. The "Label" part of the method means that there is an additional label parameter so you can display some text below the tool if the platform supports it and if the wx.TB_TEXT style is given. See also AddLabelTool, AddCheckLabelTool.
···
On 3/22/10 9:48 AM, Bryan Oakley wrote:
I'm wanting to put a radio button on a ToolBar, and I only want a
label (and radio indicator) rather than a bitmap. Is this possible?
There appears to be a RadioLabelTool item defined in ToolBarBase but
I can't find any documentation to say how it is different from a
regular RadioTool (except that it accepts a "label" attribute).
I know I can put a standard RadioButton control on the toolbar but I'd
rather not, unless that is the only way.
That's disappointing. Thanks for confirming that for me.
···
On Mon, Mar 22, 2010 at 1:09 PM, Robin Dunn <robin@alldunn.com> wrote:
On 3/22/10 9:48 AM, Bryan Oakley wrote:
I'm wanting to put a radio button on a ToolBar, and I only want a
label (and radio indicator) rather than a bitmap. Is this possible?
There appears to be a RadioLabelTool item defined in ToolBarBase but
I can't find any documentation to say how it is different from a
regular RadioTool (except that it accepts a "label" attribute).
I know I can put a standard RadioButton control on the toolbar but I'd
rather not, unless that is the only way.