RAD Studio VCL Reference
TBitBtn.Click Method

Simulates a mouse click, as if the user had clicked the button.

procedure Click; override;
virtual __fastcall Click();

Use Click to simulate a mouse click. Click performs the following tasks: 


  1. If the value of the Kind property is bkClose, Click closes the form. If the value of Kind is bkHelp, Click displays the Help screen assigned with the HelpContext property.  

  2. Any associated action fires, or, if there is no associated action, any code attached to the OnClick event is executed.


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