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.
[This page automatically generated from the Textile source at 2023-06-13 21:31:41 +0000]