Kbase P112829: 4GL: How to create a dynamic DROP-DOWN COMBO-BOX?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  1/24/2006 |
|
Status: Unverified
GOAL:
How to create a dynamic DROP-DOWN COMBO-BOX?
FIX:
Set the SUBTYPE attribute of the dynamic COMBO-BOX to "DROP-DOWN". The following procedure demonstrates using the SUBTYPE attribute of a dynamic COMBO-BOX widget to make it a DROP-DOWN COMBO-BOX:
PROCEDURE createComboBox :
ASSIGN
hFrame = FRAME DEFAULT-FRAME:HANDLE.
CREATE COMBO-BOX hComboBox
ASSIGN
DATA-TYPE = "CHARACTER"
SUBTYPE = "DROP-DOWN"
INNER-LINES = 5
FRAME = hFrame
ROW = 3
COLUMN = 5
WIDTH = 20
VISIBLE = YES
SENSITIVE = TRUE
LIST-ITEMS = "abc,def,ghi,abc,def,ghi,abc,def,ghi".
END PROCEDURE.