Sign in Join
FPDoc Onlineexperiment

TCustomComboBox.RealSetText procedure

Member of TCustomComboBoxprotectedIn unit StdCtrls

Updates ItemIndex when the new value for the control is updated.

Declaration

pascal
procedure RealSetText(const AValue: TCaption); override

Arguments

AValue

The new value for the control.

Description

RealSetText is an overridden method in TCustomComboBox. It ensures that ItemIndex is updated with the ordinal position in Items where the AValue argument is found. The value in ItemIndex is determined by locating the specified value using the case sensitivity and search order settings in the AutoCompleteText. If there are no values stored in Items, or AValue is not stored there, ItemIndex is set to -1.

A visible emulated TextHint is hidden when AValue is not an empty string ('').

The inherited method is called prior to exit. This causes the widgetset class to be updated when its Handle is valid. The value in Caption is also updated, and a CM_TEXTCHANGED control message is performed for the control.

See also

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