RAD Studio |  |

Calling the Click-event Handler

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

Copy Code

    procedure Click; dynamic;

Copy Code

    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.

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