Sign in Join
FPDoc Onlineexperiment

TComboBoxEx.AutoComplete property

Member of TComboBoxExpublishedIn unit ComboEx

Positions the list box using partial text matching.

Declaration

pascal
property AutoComplete:;

Description

AutoComplete is a Boolean property which indicates if partial text matching is used to locate values in the Items displayed for the control. When set to True, keystrokes entered in the edit box for the control are used to locate a value in Items which begins with the entered value. The ItemIndex property is updated with the ordinal position for the matching item, or -1 if an entry is not found that starts with the partial value.

Reading the value in AutoComplete causes the AutoCompleteText property to be examined, and returns True when the value cbactEnabled is included in the auto-complete options. Assigning a value to AutoComplete causes the AutoCompleteText property to include or exclude the corresponding value as needed.

Use AutoCompleteText to enable or disable other auto-complete features and behaviors in the control.

Auto-completion related tasks are performed when the KeyUp method handles valid keystrokes for the control.

Use AutoSelect to control whether text is automatically highlighted in the edit box when a new list item is selected in the control.

This description is the one of StdCtrls.TCustomComboBox.AutoComplete.

See also

  • AutoCompleteText
  • AutoSelect
  • Items
  • ItemIndex
  • KeyUp

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.