wxToolBar

wxToolBar
Creation Parameters
Functions/Procedures
Supertopics

wxToolBar

[proc]
add_separator
( atom bar )

Category: wxToolBar

This adds a line from the top to the bottom of the toolbar. It must be declared between the two tools that you want it to go between.


wxToolBar

[func]
add_tool
( atom bar, integer id, atom b1, atom b2, sequence label_text, sequence s1, sequence s2, integer kind )

Category: wxToolBar


wxToolBar

[proc]
enable_tool
( atom bar, atom id, atom enable )

Category: wxToolBar


wxToolBar

[func]
get_tool_pos
( atom bar, atom id )

Category: wxToolBar


wxToolBar

[func]
get_tool_size
( atom bar, atom id )

Category: wxToolBar


wxToolBar

[func]
get_tool_state
( atom bar, atom id )

Category: wxToolBar

Gets the on/off state of a toggle tool.


wxToolBar

[proc]
set_tool_bitmap
( atom bar, atom id, atom b1, atom b2 )

Category: wxToolBar

Sets the bitmap to be used by the tool with the given ID. This can only be used on Button tools, not controls.


wxToolBar

[proc]
set_tool_bitmap_size
( atom bar, integer x, integer y )

Category: wxToolBar

Sets the size of the images to be loaded into the toolbar. The default is 32 x 32.

Note: this does not seem to have an effect under Linux (our investigation of wxWidgets source doesn't ever show these properties being used by wxGTK).


wxToolBar

[proc]
set_tool_help
( atom bar, atom id, sequence short_help, sequence long_help )

Category: wxToolBar

Sets the help text of a toolbar button


wxToolBar

[proc]
set_tool_label
( atom bar, atom id, sequence label_val )

Category: wxToolBar

Sets the label of a toolbar button


wxToolBar

[proc]
set_tool_margins
( atom toolbar, integer x, integer y )

Category: wxToolBar

Set the values to be used as margins for the toolbar.


wxToolBar

[proc]
show_toolbar
( atom bar )

Category: wxToolBar

Must be called after tools are added.


wxToolBar

[proc]
toggle_tool
( atom bar, atom id, integer toggle )

Category: wxToolBar

Toggles a tool on or off. This does not cause any event to get emitted.