RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAutoObject.EventSinkChanged Method

Responds when the EventConnect method sets or unsets an EventSink.

Pascal
procedure EventSinkChanged(const EventSink: IUnknown); virtual;
C++
virtual __fastcall EventSinkChanged(const IUnknown EventSink);

Do not call EventSinkChanged. This method is called by the EventConnect method to respond when an Event Sink is added to or removed from the TAutoObject instance. As implemented in TAutoObject, EventSinkChanged does nothing. When you set Generate Event Support Code in the Automation Object Wizard, the generated TAutoObject descendant overrides this method to initialize internal fields for handling new Event Sinks. 

 

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