wxRuby Documentation Home

# Wx::ToolBarTool

A ToolBarTool contains information about an item added to a
ToolBar. It is returned by methods such as
ToolBar#add_tool. It can be used to find
out the numeric ID of the newly added button or
control.

Note that its methods are read-only. To actually change the state of an
item within a toolbar, use the methods provided by
ToolBar, passing in the ID of the ToolBarTool object (not
the object itself, for now). Examples of such methods which accept tool
IDs include enable_tool (to disable
and enable a button), toggle_tool (to
change the state of a toggle button) and
set_tool_normal_bitmap (to
change the bitmap image used for a button).

This class should not be instantiated directly.

## Methods

- ToolBarTool#can_be_toggled
- ToolBarTool#get_bitmap
- ToolBarTool#get_client_data
- ToolBarTool#get_control
- ToolBarTool#get_disabled_bitmap
- ToolBarTool#get_id
- ToolBarTool#get_kind
- ToolBarTool#get_label
- ToolBarTool#get_long_help
- ToolBarTool#get_normal_bitmap
- ToolBarTool#get_short_help
- ToolBarTool#get_style
- ToolBarTool#get_tool_bar
- ToolBarTool#is_control
- ToolBarTool#is_enabled
- ToolBarTool#is_separator
- ToolBarTool#is_toggled

### ToolBarTool#can_be_toggled

### ToolBarTool#get_bitmap

### ToolBarTool#get_client_data

### ToolBarTool#get_control

### ToolBarTool#get_disabled_bitmap

### ToolBarTool#get_id

### ToolBarTool#get_kind

### ToolBarTool#get_label

### ToolBarTool#get_long_help

### ToolBarTool#get_normal_bitmap

### ToolBarTool#get_short_help

### ToolBarTool#get_style

### ToolBarTool#get_tool_bar

### ToolBarTool#is_control

### ToolBarTool#is_enabled

### ToolBarTool#is_separator

### ToolBarTool#is_toggled

[This page automatically generated from the Textile source at 2023-06-09 00:45:36 +0000]