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

TMenuItem.AutoCheck

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

Declaration

Source position: menus.pp line 322

published property TMenuItem.AutoCheck : Boolean
  read FAutoCheck
  write SetAutoCheck
  default False;

Description

AutoCheck is a Boolean property which determines whether the value in Checked is updated when the menu item is clicked or executed. The default value for the property is False and does not update the value in Checked.

Changing the value for the property causes the handle for the menu item to be recreated if it has already been allocated.

AutoCheck is used in the Click method when the menu item has its RadioItem property enabled. The value in Checked is toggled if it has not already been set. It is also used when a new Action is assigned for a menu item; False allows the corresponding setting in the action to be used for the menu item.

See also

TMenuItem.Checked

  

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

TMenuItem.IsCheckItem

  

Indicates if the menu item is configured as a check box or a radio button item.

TMenuItem.RadioItem

  

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

TMenuItem.Click

  

Performs actions needed when the menu item is clicked.

TMenuItem.Action

  

Action is the default action associated with the menu item.


Version 4.0 Generated 2025-05-03 Home