RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMenuItem.Command Property

Specifies the Windows Command ID associated with the menu item.

Pascal
property Command: Word;
C++
__property Word Command;

Use Command in an application that directly handles WM_COMMAND messages. When the user selects the menu item, Windows sends a WM_COMMAND to the window associated with the menu. The ItemID of the message contains the value of the Command property of the menu item that was selected. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!