You can use the toggle box widget to represent a logical value. You can use the VIEW-AS phrase to set up a static toggle box, or the CREATE widget statement to create a dynamic toggle box. This figure shows five toggle boxes:



Attributes

AUTO-RESIZE attribute BGCOLOR attribute 1 CHECKED attribute
COLUMN attribute CONTEXT-HELP-ID attribute DATA-TYPE attribute
DBNAME attribute DCOLOR attribute 1 DROP-TARGET attribute
DYNAMIC attribute FGCOLOR attribute 1 FONT attribute
FORMAT attribute FRAME attribute FRAME-COL attribute
FRAME-NAME attribute FRAME-ROW attribute FRAME-X attribute
FRAME-Y attribute HANDLE attribute 1 HEIGHT-CHARS attribute 1
HEIGHT-PIXELS attribute 1 HELP attribute HIDDEN attribute
HWND attribute INDEX attribute INPUT-VALUE attribute 1
INSTANTIATING-PROCEDURE attribute LABEL attribute MANUAL-HIGHLIGHT attribute
MENU-KEY attribute MENU-MOUSE attribute MODIFIED attribute
MOUSE-POINTER attribute MOVABLE attribute NAME attribute 1
NEXT-SIBLING attribute NEXT-TAB-ITEM attribute NUM-DROPPED-FILES attribute
PARENT attribute PFCOLOR attribute 1 POPUP-MENU attribute
PREV-SIBLING attribute PREV-TAB-ITEM attribute PRIVATE-DATA attribute
RESIZABLE attribute ROW attribute 1 SCREEN-VALUE attribute 1
SELECTABLE attribute SELECTED attribute SENSITIVE attribute
TABLE attribute TAB-POSITION attribute TAB-STOP attribute
TOOLTIP attribute TYPE attribute 1 VISIBLE attribute
WIDGET-ID attribute WIDTH-CHARS attribute 1 WIDTH-PIXELS attribute 1
WINDOW attribute X attribute 1 Y attribute 1

Methods

END-FILE-DROP( ) method GET-DROPPED-FILE( ) method
LOAD-MOUSE-POINTER( ) method MOVE-AFTER-TAB-ITEM( ) method
MOVE-BEFORE-TAB-ITEM( ) method MOVE-TO-BOTTOM( ) method
MOVE-TO-TOP( ) method VALIDATE( ) method

Events

Default keyboard events Developer events
General direct manipulation events Mouse events
Navigation key function events Universal key function events
DROP-FILE-NOTIFY ENTRY
LEAVE VALUE-CHANGED

See also

CREATE widget statement, VIEW-AS phrase

1 This attribute also applies to toggle-box browse columns.