RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMenuItem.Click Method

Simulates a mouse click.

Pascal
procedure Click; virtual;
C++
virtual __fastcall 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. 

 

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