RAD Studio VCL Reference
TMenuItem.Click Method

Simulates a mouse click.

procedure Click; virtual;
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) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!