Macro Language Reference > Macros > System > toolbars
  
toolbars
Description
Enables you to customise the toolbars on your screen, to facilitate fast access to the features you use most often.
 
Example 248. Add a toolbar to interface display
The macro below will display the modes toolbar to the right of the window, with the following criteria:
Show icons only
Size 0
All buttons the same size
Margin of 10 pixels around the button set
Gap of 10 pixels between each button
No wrap
toolbars "modes",4,2,0,1,10,10,0
Syntax
toolbars options:t? ( side:n? ( show:n? ( size:n? ( same:n? ( margin:n? ( gap:n? ( wrap:n? ) ) ) ) ) ) )
options
*
Do not redraw.
X
Delete all toolbars first.
!
Do not show dialog box.
side
1
Position toolbar at the top of the screen.
2
Position toolbar at the bottom of the screen.
3
Position toolbar at the left of the screen.
4
Position toolbar at the right of the screen.
show
1
Display text for each action on the toolbar.
2
Display icons for each action on the toolbar.
3
Display text and icons for each action on the toolbar.
size
0
Not yet implemented, but must be included in the command line.
same
0
Draw toolbar buttons large enough to fit contents, i.e. buttons could be different sizes.
1
Draw toolbar buttons all the same size.
margin
The amount of space (in screen pixels) to be displayed between the buttons and the edge of the toolbar.
gap
The amount of space (in screen pixels) to be displayed between each button in the toolbar.
wrap
0
Wrap the toolbar onto a new row or column if it does not fit.
1
Do not wrap the toolbar.