List Edit Controls


The list edit control allows the user to enter a selection in the edit area, or, by left-clicking on the arrow, will display a drop-down list of possible choices. If the user clicks on an item in the list, the item is copied into the edit area.

The list of choices available for list edit objects may be modified only under program control. Values in the list may be accessed using a zero based list index integer.

Creating

Mnemonic

Description

'LISTEDIT'

Create a List Edit Control

Manipulating

Mnemonic

Description

'LISTADD'

Add List Item

'LISTCLR'

Clear List

'LISTDEL'

Delete List Item

'LISTRESUME'

Resume List Updates

'LISTSEL'

Select List Item (BBj only)

'LISTSUSPEND'

Suspend List Updates

'LISTUNSEL'

Deselect List Item

'TITLE'

Set text in the edit area

Querying

CTRL() Function

Information Returned

0

Outer rectangle of the control in current scaled units.

1

Text of the item in the edit area.

2

Text of the item in the edit area and is the same as function 1.

3

Number of selected items followed by the total number of items in the list.

4

Control class and type.

8

Visible/invisible and enabled/disabled status of the control.

15

Background color of the control.

16

Foreground color of the control.