Vcl.ActnMenus.TCustomMenuItem.Click

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Click; override;

C++

DYNAMIC void __fastcall Click();

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.ActnMenus.pas
Vcl.ActnMenus.hpp
Vcl.ActnMenus TCustomMenuItem

Description

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.

See Also