[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Buttons' (#lcl)

# TCustomSpeedButton.GroupIndex

Identifies the group to which the speed button control belongs.

## Declaration

Source position: buttons.pp line 421

`public property TCustomSpeedButton.GroupIndex : Integer read FGroupIndex write SetGroupIndex default 0;`

## Description

GroupIndex is used with AllowAllUp and Down to determine if the button state can be changed within the related group of controls. All buttons on the Parent control with the same value in GroupIndex are treated as a single group. The default value for the property is 0 (zero), and indicates that an explicit value has not been assigned for the property.

Set GroupIndex to a positive non-zero value to enable AllowAllUp checking when a mouse button event or an accelerator key is handled for the control.

## See also

TCustomSpeedButton.AllowAllUp |  | Indicates if all buttons in a group can be in an up state.
TCustomSpeedButton.Down |  | Indicates if the button has been set to the Down state.
TCustomSpeedButton.MouseUp |  | Signals the OnMouseUp handler.
TCustomSpeedButton.DialogChar |  | Performs actions needed to handle an accelerator key for the control.