Sign in Join
FPDoc Onlineexperiment

TCustomCheckCombo.Select procedure

Member of TCustomCheckComboprotectedIn unit ComboEx

Toggles the value for the current item selected in the control.

Declaration

pascal
procedure Select; override

Description

Select is an overridden procedure used to toggle the value for the current item in the combo-box. Select calls the inherited method.

For the Windows platform, the value for the selection cannot be toggled if the combo-box is already in a dropped-down state (when the DropDown method has been called).

Select calls the Toggle method using the value in ItemIndex as the affected check box item. The internal flag used to track drop down state is reset prior to exiting from the method. Toggle is not called when ItemIndex contains a negative value, or when the item at the position in ItemIndex is not enabled.

Alternatively, you can use the Checked property to assign an explicit Boolean value for the check box in ItemIndex.

Select is called from the KeyDown event handler to apply a Space key which occurs in the control.

See also

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