RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Classes.TNotifyEvent Type

TNotifyEvent is used for events that do not require parameters.

Pascal
TNotifyEvent = procedure (Sender: TObject) of object;
C++
(Sender: TObject) ( TNotifyEvent)();

Classes

The TNotifyEvent type is the type for events that have no event-specific parameters. These events simply notify the component that a specific event occurred. For example, OnClick, which is of type TNotifyEvent, notifies the control that a click event occurred on the control.  

The Sender parameter is the object whose event handler is called. For example, with the OnClick event of a button, the Sender parameter is the button component that is clicked. 

 

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