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

TcxSpeedButtonOptions.GroupIndex Property

Allows buttons to imitate radio group functionality.

#Declaration

Delphi
property GroupIndex: Integer read; write; default 0;

#Property Value

Type Default
Integer 0

#Remarks

When this property is set to 0, the button behaves independently of other buttons. If several buttons have an equal non-zero GroupIndex, they act like a radio group. When a user clicks one of these buttons, the previously selected button is released. The AllowAllUp property determines whether all the buttons of the group can be in the normal state. In addition, if the button Action property is assigned, the Down and GroupIndex property settings are always synchronized with the Checked and GroupIndex properties of the linked action. In this instance, if the action Checked property is set to True, the button appears pressed (down) only if the action GroupIndex property is set to a value greater than 0.

The GroupIndex property is similar to the GroupIndex property of standard VCL TSpeedButton controls. To mimic the behavior of these controls, disable the CanBeFocused option.

The default value of the GroupIndex property is 0.

See Also