A combo box is a field-level widget that combines the functionality of a fill-in field, radio set, and selection list into one fill-in and drop down list. You can set up a static combo box widget with the VIEW-AS phrase. You can create a dynamic combo box with the CREATE widget statement. The following figure shows a combo box:



Attributes

AUTO-COMPLETION attribute 1 AUTO-RESIZE attribute AUTO-ZAP attribute 1
BGCOLOR attribute 1 COLUMN attribute CONTEXT-HELP-ID attribute
DATA-TYPE attribute DBNAME attribute DCOLOR attribute 1
DELIMITER attribute 1 DISABLE-AUTO-ZAP attribute DROP-TARGET attribute
DYNAMIC attribute EDIT-CAN-PASTE attribute 1 EDIT-CAN-UNDO attribute 1
FGCOLOR attribute 1 FONT attribute 1 FORMAT attribute 1
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 INNER-LINES attribute 1 INPUT-VALUE attribute 1
INSTANTIATING-PROCEDURE attribute LABEL attribute LABELS attribute
LIST-ITEM-PAIRS attribute 1 LIST-ITEMS attribute 1 MANUAL-HIGHLIGHT attribute
MAX-CHARS attribute 1 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 NUM-ITEMS attribute 1 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 SELECTION-END attribute SELECTION-START attribute
SELECTION-TEXT attribute SENSITIVE attribute SIDE-LABEL-HANDLE attribute
SORT attribute 1 SUBTYPE attribute 1 TABLE attribute
TAB-POSITION attribute TAB-STOP attribute TEXT-SELECTED attribute
TOOLTIP attribute TYPE attribute 1 UNIQUE-MATCH attribute 1
VISIBLE attribute WIDGET-ID attribute WIDTH-CHARS attribute 1
WIDTH-PIXELS attribute 1 WINDOW attribute X attribute 1
Y attribute 1

Methods

ADD-FIRST( ) method 2 ADD-LAST( ) method 2
CLEAR-SELECTION( ) method 2 DELETE( ) method 2
EDIT-CLEAR( ) method 2 EDIT-COPY( ) method 2
EDIT-CUT( ) method 2 EDIT-PASTE( ) method 2
EDIT-UNDO( ) method 2 END-FILE-DROP( ) method
ENTRY( ) method 2 GET-DROPPED-FILE( ) method
INSERT( ) method 2 LOAD-MOUSE-POINTER( ) method
LOOKUP( ) method 2 MOVE-AFTER-TAB-ITEM( ) method
MOVE-BEFORE-TAB-ITEM( ) method MOVE-TO-BOTTOM( ) method
MOVE-TO-TOP( ) method REPLACE( ) method 2
SET-SELECTION( ) method 2 VALIDATE( ) method

Events

Default keyboard events Developer events
Field editing key function 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 combo-box browse columns.
2 This method also applies to combo-box browse columns.