Description

An AComboBox consists of either a static text box or an edit box combined with a list box. Users can enter information in the text box portion or select an item from the list box portion of the control.

The list box can be displayed at all times or pulled down by the user. If the AComboBox contains a static text box, the text box always displays the selection (if any) in the list box portion of the AComboBox. If it uses an edit box, the user can type in the desired selection. The list box highlights the first item (if any) that matches what the user has entered in the edit box. The user can then select the item highlighted in the list box to complete the choice.

Properties

 

Alignment

hWnd

Object

ToolTipText

BackColor

Image

SelLength

Top

Description

IntegralHeight

SelStart

Visible

DisableNoScroll

ItemData

SelText

WhatsThisHelpID

Enabled

Left

Sorted

WhatsThisHelpText

Font

List

Style

Width

ForeColor

ListCount

TabStop

 

Height

ListIndex

Tag

 

HelpContextID

Name

Text

 

Methods

 

AddItem

InsertItem

RemoveItem

ShowWhatsThis

Clear

Move

SetFocus

ZOrder

FindItem

Refresh

ShowHelpContext

 

Events

 

OnChange

OnHelpContext

OnLostFocus

OnSelChange

OnClick

OnKeyDown

OnMouseDown

OnWhatsThisHelp

OnDblClick

OnKeyPress

OnMouseMove

 

OnGotFocus

OnKeyUp

OnMouseUp

 

Constants

 

enumAComboBoxAlignment

enumAComboBoxStyle

Comments

The AComboBox is different from the AGroupBox, AListBox,and ATextBox controls. The AComboBox is similar to the AListBox but with the added static or edit box. The AListBox displays a list of string items from which the user can select one or more. The AGroupBox control provides a graphical or functional grouping of controls. The ATextBox control displays one item only and can be textual information entered at design time, entered by the user, or assigned to the control in code at run time.

See also

AGroupBox, AListBox, ATextBox