Skip to main content

TcxSpeedButtonOptions.GroupIndex Property

Allows buttons to imitate radio group functionality.

Declaration

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