Workbench User Guide : 11. Creating Toolbars
 
Share this page                  
Creating Toolbars
 
Overview
Start the Toolbar Editor
Types of Toolbar Items
Scripts for Toolbar Items
How You Can Edit Toolbar Items
Toolbar Items and Variables
How You Can Create Toolbar Items
Overview
After you create a frame and its menu, you can then create toolbars for your frame. A toolbar is an object of class MainBar (subclass of StackField) containing other fields.
You can insert toolbars that are displayed on the top, bottom, left, or right side of the frame. These toolbars are then available in the MainBarTop, MainBarBottom, MainBarLeft, and MainBarRight attributes of the frame, which are all arrays of MainBar. You can have multiple toolbars on each side of the frame.
For more information, see the MainBar class and the attributes MainBarTop, MainBarBottom, MainBarLeft, and MainBarRight of the FrameSource and FrameExec classes in the Language Reference Guide.
Toolbar items typically consist of buttons that provide shortcuts for frequently used menu commands or for easy access to other features or frames.
You use the Toolbar Editor to create a toolbar for a frame, and you can change the toolbar’s appearance as you are designing it. For each toolbar and toolbar item, you can specify its position, properties, appearance, and frame modes and biases.