Sign in Join
FPDoc Onlineexperiment

TCustomComboBox.DoEnter procedure

Member of TCustomComboBoxprotectedIn unit StdCtrls

Updates the control when the Enter key is applied.

Declaration

pascal
procedure DoEnter; override

Description

DoEnter is an overridden method used to update the edit and list box when the Enter or Return key is handled in messages to the control. The inherited method is called to signal the OnEnter event handler (when assigned).

DoEnter uses the value in Style to determine if an edit box is enabled for the control. If an edit box is not used, no additional actions are performed in the method.

When AutoSelect is enabled, the SelectAll method is called to select the text in the edit box and to locate the entry in the Items for the control. AutoSelected is updated to indicate if SelText matches the value in Text.

See also

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