A button widget represents a push button on the screen. The button can contain a textual label or it can have images associated with its pressed and unpressed states. You can define a static button with the DEFINE BUTTON statement. You can create dynamic buttons with the CREATE widget statement. This figure shows three buttons:



Attributes

AUTO-END-KEY attribute AUTO-GO attribute AUTO-RESIZE attribute
COLUMN attribute CONTEXT-HELP-ID attribute CONVERT-3D-COLORS attribute
DCOLOR attribute DEFAULT attribute DROP-TARGET attribute
DYNAMIC attribute FLAT-BUTTON attribute FONT attribute
FRAME attribute FRAME-COL attribute FRAME-NAME attribute
FRAME-ROW attribute FRAME-X attribute FRAME-Y attribute
HANDLE attribute HEIGHT-CHARS attribute HEIGHT-PIXELS attribute
HELP attribute HIDDEN attribute HTML-CHARSET attribute
IMAGE attribute IMAGE-DOWN attribute IMAGE-INSENSITIVE attribute
IMAGE-UP attribute INSTANTIATING-PROCEDURE attribute LABEL attribute
MANUAL-HIGHLIGHT attribute MENU-KEY attribute MENU-MOUSE attribute
MOUSE-POINTER attribute MOVABLE attribute NAME attribute
NEXT-SIBLING attribute NEXT-TAB-ITEM attribute NO-FOCUS attribute
NUM-DROPPED-FILES attribute PARENT attribute PFCOLOR attribute
POPUP-MENU attribute PREV-SIBLING attribute PREV-TAB-ITEM attribute
PRIVATE-DATA attribute RESIZABLE attribute ROW attribute
SELECTABLE attribute SELECTED attribute SENSITIVE attribute
TAB-POSITION attribute TAB-STOP attribute TOOLTIP attribute
TYPE attribute VISIBLE attribute WIDGET-ID attribute
WIDTH-CHARS attribute WIDTH-PIXELS attribute WINDOW attribute
X attribute Y attribute

Methods

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

Events

Default keyboard events Developer events
Mouse events Navigation key function events
Universal key function events CHOOSE
DROP-FILE-NOTIFY ENTRY
LEAVE

See also

DEFINE BUTTON statement, CREATE widget statement