RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMenuItem.AutoCheck Property

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

Pascal
property AutoCheck: Boolean;
C++
__property Boolean AutoCheck;

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). 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!