RAD Studio
ContentsIndex
PreviousUpNext
Calling the Click-event Handler

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.

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!