[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'ComboEx' (#lcl)

TCustomCheckCombo.Select

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

Declaration

Source position: comboex.pas line 313

protected procedure TCustomCheckCombo.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

TCustomCheckCombo.Toggle

  

Toggles the checked state for the check box at the specified position.

TCustomCheckCombo.KeyDown

  

Handles key down events for the control.

TCustomComboBox.DropDown

  

Signals the OnDropDown event handler.

TCustomComboBox.Select

  

Signals the OnSelect event handler when ItemIndex is changed.

TCustomComboBox.ItemIndex

  

The index of the currently selected item, or -1 if no item is selected.


Version 4.0 Generated 2025-05-03 Home