API:Vcl.RibbonActnCtrls.TRibbonMenuItem.Click
Delphi
procedure Click; override;
C++
DYNAMIC void __fastcall Click();
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
procedure function |
public | Vcl.RibbonActnCtrls.pas Vcl.RibbonActnCtrls.hpp |
Vcl.RibbonActnCtrls | TRibbonMenuItem |
Description
Executes the control's function.
Vcl.RibbonActnCtrls.TRibbonMenuItem.Click inherits from Vcl.ActnMenus.TCustomMenuItem.Click. All content below this line refers to Vcl.ActnMenus.TCustomMenuItem.Click.
Executes the control's function.
This override of the method inherited from TCustomActionControl does little except bring the form containing the item into focus, and prevent the inherited method from being called. The reason for this lack of action is that at runtime, no action should be taken until the primary mouse button is pressed and released, which makes the OnClick event handler responsible for taking action. Click takes place only when the mouse button is first pressed, prior to release.