wxToolBar
Creation Parameters
- atom parent
- integer id [= -1]
- integer x [=-1]
- integer y [=-1]
- integer cx [=-1]
- integer cx [=-1]
- integer style [= wxTB_HORIZONTAL | wxNO_BORDER]
Functions/Procedures
- proc add_separator( atom bar )
- func add_tool( atom bar, integer id, atom b1, atom b2, sequence label_text, sequence s1, sequence s2, integer kind )
- proc enable_tool( atom bar, atom id, atom enable )
- func get_tool_pos( atom bar, atom id )
- func get_tool_size( atom bar, atom id )
- func get_tool_state( atom bar, atom id )
- proc set_tool_bitmap( atom bar, atom id, atom b1, atom b2 )
- proc set_tool_bitmap_size( atom bar, integer x, integer y )
- proc set_tool_help( atom bar, atom id, sequence short_help, sequence long_help )
- proc set_tool_label( atom bar, atom id, sequence label_val )
- proc set_tool_margins( atom toolbar, integer x, integer y )
- proc show_toolbar( atom bar )
- proc toggle_tool( atom bar, atom id, integer toggle )
Supertopics
wxToolBar
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
- bar: toolbar to add to
- id: the tool's id
- b1: bitmap
- b2: bitmap
- s1: short help string
- s2: long help string
- kind: type of item (wxITEM_NORMAL, wxITEM_CHECK, wxITEM_RADIO)
wxToolBar
[proc]
enable_tool ( atom bar, atom id, atom enable )
Category:
wxToolBar
wxToolBar
Category:
wxToolBar
wxToolBar
Category:
wxToolBar
wxToolBar
Category:
wxToolBar
Gets the on/off state of a toggle tool.
wxToolBar
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
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
Category:
wxToolBar
Set the values to be used as margins for the toolbar.
wxToolBar
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.