>>  <<  Ndx  Usr  Pri  Phr  Dic  Rel  Voc  !:  wd  Help  User

Toolbar

A toolbar can be shown at the top of a form, beneath any menu.

There are 3 toolbar commands:

tbar filename;

filename of toolbar bitmap

tbarshow b;

b is 0 to hide, 1 to show (default)

tbarset id index image;

toolbar index and image number in bitmap

The tbarset command with an empty id sets the toolbar index as a separator with a width as specified in the image value.

Toolbar buttons are usually for a command that is also on the menu. If the menu item and the toolbar button are given the same id, then set and setenable commands affect both, and they will cause the same event.

The set command for an id that is a menu or toolbar command will check or uncheck the menu or toolbar. The setenable command for an id that is a menu or toolbar command enables or disable the commands.

Any toolbar bitmap file can be used. An example is provided in file: system\examples\data\isitbar.bmp, which is referenced by the controls demo.

You can create and edit toolbars using Paint. To do so, open the .bmp file using Paint, maximize the zoom setting and select grid on.


>>  <<  Ndx  Usr  Pri  Phr  Dic  Rel  Voc  !:  wd  Help  User