RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRibbonSplitMenuItem.Click Method

Executes the control's function.

Pascal
procedure Click; override;
C++
virtual __fastcall Click();

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!