Skip to main content
A newer version of this page is available. .

TcxCheckComboBoxItem Class

Represents an individual item for a check combo box editor.

Declaration

TcxCheckComboBoxItem = class(
    TcxButtonGroupItem
)

Remarks

A TcxCheckComboBoxItem object represents an item for a check combobox editor. Items denote available options and are displayed in the dropdown window of the editor. To specify items, see its Properties.Items property.

The following screenshot shows a check combo box with three items selected:

An item provides properties that allow you to specify its text representation and enabled state.

At design time, you can create items by activating the items editor in the Object Inspector:

Clicking the ellipsis button activates the items editor:

Buttons at the top of the editor enable you to add, move and remove items. Select item(s) and then switch to the Object Inspector in order to set their properties:

At run time, you create items using the Add method as follows:

procedure TForm1.Button1Click(Sender: TObject);
var
  Item: TcxCheckComboBoxItem;
begin
  Item := cxCheckComboBox1.Properties.Items.Add;
  Item.Description := 'Sunday';
  Item.ShortDescription := 'Sun';
end;

or using the AddCheckItem method as shown in the following code example:

procedure TForm1.Button1Click(Sender: TObject);
begin
  cxCheckComboBox1.Properties.Items.AddCheckItem('Sunday', 'Sun');
end;
See Also