Vcl.Menus.TMenuItem.AutoCheck

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property AutoCheck: Boolean read FAutoCheck write FAutoCheck default False;

C++

__property bool AutoCheck = {read=FAutoCheck, write=FAutoCheck, default=0};

Properties

Type Visibility Source Unit Parent
property published
Vcl.Menus.pas
Vcl.Menus.hpp
Vcl.Menus TMenuItem

Description

Indicates whether the menu item's checked state toggles automatically when the item is clicked.

When AutoCheck is true, then every time the menu item is clicked, the value of the Checked property toggles automatically before the OnClick event occurs. When AutoCheck is false, the application must explicitly set the value of the Checked property (for example, in an OnClick event handler).

See Also