Calling the Click-event Handler

From RAD Studio
Jump to: navigation, search

Go Up to Defining the Handler Type


All controls, for example, inherit a dynamic method called Click for handling click events:

procedure Click; dynamic;
virtual void __fastcall Click(void);

The implementation of Click calls the user's click-event handler, if one exists. If the user has assigned a handler to a OnClick event of a control, clicking the control results in that method being called. If no handler is assigned, nothing happens.

See Also