TMenuItem.AutoCheck property
Indicates whether the menu item automatically toggles the value in Checked when executed.
Declaration
property 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
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
