Vcl.Menus.TMenuItem.Command

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Command: Word read FCommand;

C++

__property System::Word Command = {read=FCommand, nodefault};

Properties

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

Description

Specifies the Windows Command ID associated with the menu item.

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.

See Also