The Model Button WidgetTable of the WidgetsThe UpDown Button Widget
 

The Arrow Button Widget

A View of a Arrow Button Widget

View Class: ArrowButton
Spec Class: ArrowButtonSpec

The Arrow Button Widget has the same behavior like the Button Widget exept that the label is replaced by an arrow sign. The direction of the arrow can be defined as left, right, up, or down.
 
 


The Basics Section:

ID Unique symbolic name (ID) of the button.  
This ID can be used by the application to access the widget via "builder componentAt:#ID".
Action Name of the selector which is sent to the application when the button is pressed.  
If the selector is an one-arg selector, the argument is passed as a string.
Argument Argument passed with the action selector.  
The selector must end with ':'.
Orientation Defines the direction of the arrow.
 
 

The Details Section:

FG-Color Defines the foreground color of the button, i.e. the color of the arrow sign. 
After selecting the check toggle the foreground color can be chosen by selecting the desired colored button. If no color  is selected, the button takes its default foreground color from the style sheet.
BG-Color Defines the background color of the button, i.e. the color of the button's view. 
After selecting the check toggle the background color can be chosen by selecting the desired colored button. If no color  is selected, the button takes its default background color from the style sheet.
Initially Disabled Turns on/off that the button is initially disabled.
Initially Invisible Turns on/off that the button is initially invisible.
Can Tab Turns on/off that the button can be reached by tabbing.
Auto Repeat Turns on/off that the action is evaluated repeatedly as long as the button is pressed.  
To get this behavior, the check box Triggered On Down must be turned on.
Trigger On Down Turns on/off that the action is evaluated when the button is pressed; otherwise, when released.
 
 

The Channels Section:

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

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

A value model is used to dynamically enable/disable the widget. 

A Block returning a boolean can also be used,  
but that will be evaluated only once at creation time of the widget 
(because it does not send change notifications) .

Visibility Aspect selector or binding for the visibility state of the widget. 
It should return a 

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

A value model is used to provide a dynamically changing of the visibility of the widget. 

A Block returning a boolean can also be used,  
but that will be evaluated only once at creation time of the widget 
(because it does not send change notifications) .

FG-Color Aspect selector or binding for the foreground color of the button. 
It should return a 

    - Color instance  (only for static behavior) 
    - Block returning a Color (only for half-static behavior) 
    - ValueModel* instance with a Color instance. 

A value model is used to provide a dynamically changing of the foreground color.

BG-Color Aspect selector or binding for the background color of the button. 
It should return a 

    - Color instance  (only for static behavior) 
    - Block returning a Color (only for half-static behavior) 
    - ValueModel* instance with a Color instance. 

A value model is used to provide a dynamically changing of the background color.

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

 

The Help Section:

see document "Using the Help Tool"
 
 

The Layout Section:

see document "The Layout of the Widgets"
 


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