COMBO-BOXLIST-ITEMS item-list LIST-ITEM-PAIRS item-pair-listINNER-LINES lines size-phrase SORTTOOLTIP tooltipSIMPLE DROP-DOWN DROP-DOWN-LISTMAX-CHARS charactersAUTO-COMPLETION UNIQUE-MATCH
COMBO-BOXLIST-ITEMS item-list LIST-ITEM-PAIRS item-pair-listINNER-LINES lines SORTDROP-DOWN DROP-DOWN-LISTMAX-CHARS charactersAUTO-COMPLETION UNIQUE-MATCHLIST-ITEMS item-listSpecifies that the items appear in the drop‑down list. item-list represents a comma‑separated list of valid values for the field or variable.LIST-ITEM-PAIRS item-pair-list
label , value , label , valueINNER-LINES linesSpecifies the number of lines visible in the drop‑down list for a DROP-DOWN or DROP-DOWN-LIST combo-box widget. The value for lines must be 3 or greater. If the number of lines you specify is less than the number of items in the drop‑down list, the list is scrollable.
width BY heightSIZE SIZE-CHARS SIZE-PIXELSFor more information, see the SIZE phrase reference entry.
Note: The height value is ignored for DROP-DOWN and DROP-DOWN-LIST combo-box widgets. The height is always set to the height of a fill‑in for the current font.TOOLTIP tooltipYou can add or change the TOOLTIP option at any time. If TOOLTIP is set to “” or the Unknown value (?), then the tooltip is removed. No tooltip is the default. The TOOLTIP option is supported in Windows only.MAX-CHARS charactersThe maximum number of characters the edit control can hold. The characters parameter must be a positive integer constant. If characters is zero or the Unknown value (?), MAX-CHARS is set to 255 characters by default.The first example, r-combo.p, views a date field as a combo‑box. When you run this procedure, you can choose a date value from the drop‑down list. When you choose a new value, the VALUE-CHANGED trigger updates the value of out-string to an event associated with the new date value. The example initializes the drop‑down list by building a comma‑separated list of values and then assigning the string to the LIST-ITEMS attribute of the combo‑box.The following example, r-combo2.p, builds a combo‑box based on field values from a database. It defines triggers that allow you to change the value of the combo‑box without displaying the drop‑down list. They allow you to scroll through the values using the CURSOR-DOWN and CURSOR-UP keys or to jump to a specific value by typing its first letter.
Windows allows the user to transfer focus to the drop‑down list by pressing ALT and one of the letters in the label. This is called a mnemonic.
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |