ListBox Object

List box Windows control. The list box control currently only supports single selection. It operates in 2 modes: (1) copy selection from "List ID" into "Value ID" (2) move the selection.

Property

Description

Accelerator

Windows mnemonic (accelerator) key.

AddString

Adds the specified string as a single list item.

DeleteString

Removes the list item that corresponds to the specified index number (zero-based).

GetCurSel

Returns the zero-based index of the selected list item. Returns -1 if no item is selected.

HorizontalScroll

(WINDOWS) None/Always

ListID

List ID get/set by control. Should be in the format: "item 1\r\nitem 2\r\nitem N".

RemoveSelection

T/F remove selection from list box (List ID) when recorded.

Selection

Same as GetCurSel.

SetCurSel

Selects the list item that corresponds to the specified index number (zero-based).

Sort

(WINDOWS) T/F: sort alphabetically?

UseColors

Use subsequent BackColor and TextColor properties (a little slow).

UseTabstops

(WINDOWS) No/Yes

ValueID

Value ID get/set by control.

VerticalScroll

(WINDOWS) None/Always/Automatic

WantKeyInput

(WINDOWS) No/Yes