Show: Delphi
C++
Display Preferences
Calling the Click-event Handler
From RAD Studio
Go Up to Creating events Index
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 control's OnClick event, clicking the control results in that method being called. If no handler is assigned, nothing happens.