RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMenuItem.Visible Property

Specifies whether the menu item appears in the menu.

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

Use Visible to prevent the user from seeing an item in the menu. For example, remove menu items that do not apply to the current component of a pop-up menu in an OnPopup event handler. 

If Visible is true, the menu item appears. If Visible is false, the menu item is hidden.

Note: This property is not stored with the menu item if it is supplied by a TAction object.
 

 

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