Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCheckComboBoxItem Class

Represents an individual item for a check combo box editor.

#Declaration

Delphi
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:

Delphi
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:

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