GroupIndex: Integer;
The GroupIndex property sets index of the menu items group.
The GroupIndex property is used to create a group of menu elements working as radio button: selection of one element deselects other menu elements. To create a group, set the GroupIndex property to the same value for required elements and set the RadioItem and AutoCheck properties to True. For the selected group element, the Checked property will be set to True, for all the rest group elements - to False.
Create a form and add the MainMenu component to it. Create several menu elements, set the same value in the GroupIndex property for them and set the RadioItem and AutoCheck properties to True. When the form is working, the menu looks as follows:
See also: