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

TMenuItem.RadioItem

Indicates if the menu item is displayed as a radio button.

Declaration

Source position: menus.pp line 340

published property TMenuItem.RadioItem : Boolean
  read FRadioItem
  write SetRadioItem
  default False;

Description

RadioItem is a Boolean property which controls the appearance and behavior for the menu item. When enabled, the menu item acts as a radio button which is part of the group specified in the GroupIndex property. Only one of the radio buttons for GroupIndex can be selected (Checked) at any given time. The default value for the property is False, and indicates that the menu item does not display radio button behavior.

RadioItem is used in conjunction with the AutoCheck property. AutoCheck indicates whether the Checked in toggled when the radio button menu item is executed.

Use ShowAlwaysCheckable if space is reserved for the checked icon even when the menu item is not Checked.

See also

TMenuItem.GroupIndex

  

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

TMenuItem.Checked

  

Indicates whether a check mark is displayed beside the menu item.

TMenuItem.AutoCheck

  

Indicates whether the menu item automatically toggles the value in Checked when executed.

TMenuItem.ShowAlwaysCheckable

  

ShowAlwaysCheckable - if True, Item is always shown as checkable.


Version 4.0 Generated 2025-05-03 Home