Table of the WidgetsThe Popup List Widget
 

The Tool Bar Widget

A View of the Tool Bar Widget

View Class: MenuPanel
Spec Class: MenuPanelSpec

The Tool Bar Widget is used to provide horizontal or vertical tool bar capabilities. Originally, the MenuPanel class (the view class of the widget) was introduced for menu bars and popup menus, but it can also be used for tool bars. Therefore, the components of the tool bar are defined by using the Menu Editor.


The Basics Section:

ID Unique symbolic name (ID) of the tool bar.  
This ID can be used by the application to access the widget via "builder>>componentAt:#ID".
Selector Aspect selector or binding for the building of the tool bar items. 
It should return a menu spec.
Performer Aspect selector or binding for sending the messages of the tool bar items to an object. 
It should return an object which is able to receive the messages.
Menu Editor Opens a Menu Editor on the application class and the defined selector.

The Details Section:

Font Defines the font style of the tool bar's labels. 
After selecting the check toggle the font style can be chosen by selecting one of the Family/Face/Style/Size buttons. If no font style is selected, the tool bar takes its default font style from the style sheet.
Has Vertical Layout  Turns on/off that the tool bar has a vertical layout.
Show Separating Lines Turns on/off that the items are separated by lines.
Can Tab Turns on/off that the tool bar can be reached by tabbing.

The Channels Section:

Enable Aspect selector or binding for en-/disabling the tool bar. 
It should return a 

    - Boolean instance** (only for static behavior) 
    - ValueModel* instance with a Boolean instance** 

A value model is used to provide a dynamically changing of the ability of the tool bar.

*  = ValueHolder, AspectAdaptor, BufferedValueHolder, RangeAdaptor, TriggerValue
** = true, false

The Help Section:

see "Using the Help Tool"

The Layout Section:

see "The Layout of the Widgets"


[stx-logo]
Copyright © 1998 eXept Software AG, all rights reserved