The Toolbar Button Properties Dialog

Toolbar buttons act like the menu items with which they are associated.

To support toolbar buttons, the menu item definition can be extended

Toolbar Button Images can be

Toolbar buttons can be simple, toggle, option, or separator.

Tooltips display the associated menu item's label.

Zim code does not differentiate toolbar buttons from menu items.

One or more toolbars can exist for a particular menu; they can be dragged, grown, shrunk, made visible, or made invisible programmatically.

Menu items that are to be displayed on a toolbar provide a toolbar name; menu items with the same toolbar name appear on the same toolbar.

Support for Toolbars in the Screen Painter

Toolbar buttons need to be associated with a menu item. The menu item attributes data entry screen provides a tool button definition screen. The screen painter displays only toolbars in test mode.

Toolbar Commands

The following command toggles the toolbar's visibility:

MENU SET TOOLBAR ([NOT] SUPPRESS) <toolbarname>

where if <toolbarname> is not entered, all toolbars are suppressed or not suppressed.

The Toolbar Button Properties Dialog

The Toolbar Button Properties dialog can be displayed by clicking on the Toolbar Button Properties push button in the Appearance section of the Edit Menu Item dialog. The dialog consists of five sections: the Instructions on creating toolbar buttons, the Toolbar Name, the Image Type, the Choose Predefined Button Image, and the Choose Button Image Filename.

Instructions on Creating Toolbar Buttons

This section provides the steps on how to associate toolbars and toolbar buttons with menu items.

Toolbar Name

This field identifies the toolbar on which the menu item's toolbar button appears. Menu items with the same toolbar name appear on the same toolbar.

Image Type

Radio button group that identifies if the button associated with this menu item uses a Predefined Image or a User Defined Image.

The Choose Predefined Button Image

This section becomes available when the image type is set to Predefined Image. Predefined images can be chosen from this list box, the menu, or the tool buttons.

The Choose Button Image Filename

This section becomes available when the image type is set to User Defined Image. User Defined Image filenames can be obtained by browsing for bitmap, icon, or metafile files or by entering the filename directly.