Adding a Toolbar

A toolbar presents buttons on the form associated with actions defined by the current interactive BDL instruction in your program.

This figure is a screenshot of the custform form with a toolbar added in Chapter 5.

Figure 1. A form with a toolbar displayed on Windows™ platforms

The TOOLBAR section of a form specification file defines a toolbar with buttons that are bound to actions. A toolbar definition can contain the following elements:

Values can be assigned to TEXT, COMMENT, and IMAGE attributes for each item in the toolbar.

The toolbar commands are enabled by actions defined by the current interactive BDL instruction, which in our example is the MENU statement in the custquery.4gl module. When a toolbar button is selected by the user, the program triggers the action to which the toolbar button is bound.