Description | Hierarchy | Fields | Methods | Properties |
type TAdGUIConnector = class(TObject)
Connects a TAdWindowFramework to a TAdComponent.
![]() |
constructor Create(AParent:TAdComponent); |
![]() |
destructor Destroy; override; |
![]() |
procedure ConnectEventHandlers(Window:TAdWindowFramework); |
![]() |
procedure RestoreEventHandlers; |
![]() |
property Parent: TAdComponent read FParent; |
![]() |
property Window: TAdWindowFramework read FWindow; |
![]() |
property Connected: boolean read FConnected; |
![]() |
constructor Create(AParent:TAdComponent); |
Creates a new instance of TAdGUIConnector. AParent specifies the target component. Remember to free TAdGUIConnector befor destroying the component. |
![]() |
destructor Destroy; override; |
Destroys the instance of TAdGUIConnector and restores the event handlers. |
![]() |
procedure ConnectEventHandlers(Window:TAdWindowFramework); |
Connects the event handlers to the given window framework. Commonly AdDraw.Window is used here. TAdGUIConnector will call the events which were earlier connected to the window framework. It is not recommended to override the event handlers while TAdGUIConnector is connected to the window. |
![]() |
procedure RestoreEventHandlers; |
Restores the event connections made. |
![]() |
property Parent: TAdComponent read FParent; |
The parent gui component. |
![]() |
property Window: TAdWindowFramework read FWindow; |
The window framework the events are taken from. |
![]() |
property Connected: boolean read FConnected; |
Specifies whether TAdGUIConnector is currently connected to a window framework. |