Vcl.AxCtrls.TConnectionPoint

From RAD Studio API Documentation
Jump to: navigation, search

System.TContainedObjectSystem.TAggregatedObjectSystem.TObjectTConnectionPoint

Delphi

TConnectionPoint = System.Win.ComObj.TConnectionPoint;

Properties

Type Visibility Source Unit Parent
class public Vcl.AxCtrls.pas Vcl.AxCtrls Vcl.AxCtrls

Description

TConnectionPoint implements the IConnectionPoint interface for a single outgoing interface.

TConnectionPoint implements the IConnectionPoint interface, which client applications call to register an interest in a specific outgoing interface. The corresponding outgoing interface defines event handlers that the client implements. The client uses IConnectionPoint to supply its implementation of this interface (called an event sink), so that it can be called when events occur.

Wizards that generate event support code automatically create a class member of type TConnectionPoint, which maintains a list of event sinks supplied by clients.

TConnectionPoint objects support the following features:

  • Outgoing interfaces, such as event sets.
  • The ability to enumerate the IIDs of the outgoing interfaces.
  • The ability to connect and disconnect sinks to and from the object for those outgoing IIDs.
  • The ability to enumerate the connections that exist to a particular outgoing interface.

The IConnectionPoint and IConnectionPointContainer interfaces are used for OLE event handling. Because the wizard automatically sets up events for a control, users only need to use these interfaces directly when they want to modify the standard VCL implementation or to add events to a COM server whose wizard does not generate event support code.

GetConnectionInterface, GetConnectionPointContainer, Advise, Unadvise, EnumConnections

See Also