Description

The AListBox displays a list of string items from which the user can select one or more. Items can be added, deleted, inserted, selected, or read from the AListBox using the control methods.

The AListBox appears as a rectangle containing a list of strings. A scroll bar is added when necessary. If no item is selected, the ListIndex property value is -1. The first item in the list is ListIndex 0, and the value of the ListCount property is always one more than the largest ListIndex value.

Properties

 

Alignment

ForeColor

ListCount

TabStop

Appearance

Height

tListIndex

Tag

BackColor

HelpContextID

MultiSelect

Text

BorderStyle

hWnd

Name

ToolTipText

CheckBoxes

Image

Object

Top

Columns

IntegralHeight

SelCount

TopIndex

Description

ItemCheck

Selected

Visible

DisableNoScroll

ItemData

Sorted

WhatsThisHelpID

Enabled

Left

TabPositions

WhatsThisHelpText

Font

List

TabPositionsCount

Width

Methods

 

AddItem

InsertItem

RemoveItem

ShowWhatsThis

Clear

Move

SetFocus

ZOrder

FindItem

Refresh

ShowHelpContext

 

Events

 

OnClick

OnKeyDown

OnMouseDown

OnWhatThisHelp

OnDblClick

OnKeyPress

OnMouseMove

 

OnGotFocus

OnKeyUp

OnMouseUp

 

OnHelpContext

OnLostFocus

OnSelChange

 

Constants

 

enumAListBoxAlignment

enumAListBoxMultiSelect

Comments

The AListBox control offers one or more selections from a list of choices, whereas the AComboBox allows only one selection from a list of choices.

See Also

AComboBox, AGroupBox, ATextBox