Class TAdGUIConnector

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TAdGUIConnector = class(TObject)

Description

Connects a TAdWindowFramework to a TAdComponent.

Hierarchy

Overview

Methods

Public constructor Create(AParent:TAdComponent);
Public destructor Destroy; override;
Public procedure ConnectEventHandlers(Window:TAdWindowFramework);
Public procedure RestoreEventHandlers;

Properties

Public property Parent: TAdComponent read FParent;
Public property Window: TAdWindowFramework read FWindow;
Public property Connected: boolean read FConnected;

Description

Methods

Public constructor Create(AParent:TAdComponent);

Creates a new instance of TAdGUIConnector. AParent specifies the target component. Remember to free TAdGUIConnector befor destroying the component.

Public destructor Destroy; override;

Destroys the instance of TAdGUIConnector and restores the event handlers.

Public 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.

Public procedure RestoreEventHandlers;

Restores the event connections made.

Properties

Public property Parent: TAdComponent read FParent;

The parent gui component.

Public property Window: TAdWindowFramework read FWindow;

The window framework the events are taken from.

Public property Connected: boolean read FConnected;

Specifies whether TAdGUIConnector is currently connected to a window framework.

SourceForge.net Logo


Generated by PasDoc 0.11.0 on 2008-12-31 14:31:59