Vcl.Menus.TMenuItem.Click
Delphi
procedure Click; virtual;
C++
virtual void __fastcall Click();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.Menus.pas Vcl.Menus.hpp |
Vcl.Menus | TMenuItem |
Description
Simulates a mouse click.
Click generates an OnClick event, as if the user had clicked the menu item. Unlike a real mouse click, Click does not generate a WM_COMMAND message to the window associated with the menu.
Component writers can override click to provide a different response when the user selects the menu item.