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

# TMenuItem.GroupIndex

GroupIndex: the sequence number in a group of mutually exclusive RadioItem choices.

## Declaration

Source position: menus.pp line 333

`published property TMenuItem.GroupIndex : Byte read FGroupIndex write SetGroupIndex default 0;`

## Description

GroupIndex is a Byte property which indicates a group for related menu items. GroupIndex is used in menu items displayed as radio buttons. The menu items with their RadioItem property set and the same value in GroupIndex are in the same mutually exclusive radio button display; only one radio button item can be Checked at any given time.

Changing the value for the property causes other radio button menu items with the same GroupIndex to be un-checked when the current item is Checked. If the Handle has been allocated for the menu item, the RegroupMenuItem routine in the LCL interface is called.

The default value for the property is 0, and indicates that a group index value has not been assigned.