Description | Hierarchy | Fields | Methods | Properties |
type TAdWindowFramework = class(TAdPersistent)
An abstract class which represents a window or the drawing surface. TAdWindowFramework is passed to the plugin dll, which uses the data given by the frame work to produce its own device context or uses an already existing one.
constructor Create; virtual; |
|
destructor Destroy; override; |
|
function BindTo(AObj:Pointer):boolean; virtual; abstract; |
|
function InitDisplay(AProps:TAdDisplayProperties):boolean; virtual; abstract; |
|
procedure Run; virtual; abstract; |
|
procedure Terminate; virtual; abstract; |
|
function IdentStr:ShortString; |
property Title: string read FTitle write SetTitle; |
|
property Events: TAdEventHandler read FEvents; |
|
property ClientWidth: integer read GetClientWidth; |
|
property ClientHeight: integer read GetClientHeight; |
|
property CursorVisible: Boolean read FCursorVisible write SetCursorVisible; |
constructor Create; virtual; |
|
Creates an instance of TAdWindowFramework. |
destructor Destroy; override; |
|
Destroys the instance of TAdWindowFramework. |
function BindTo(AObj:Pointer):boolean; virtual; abstract; |
|
The window framework will try to "bind" itsself to the object (which in most cases is a component) given by the "AObj"-Parameter. For Windowframeworks which create a window theirselfes, "AObj" must be See also
|
function InitDisplay(AProps:TAdDisplayProperties):boolean; virtual; abstract; |
|
Inits the display surface on the object passed by BindTo. If the window-framework does not create the window itself, the properties given in "AProps" may be ignored. See also
|
procedure Terminate; virtual; abstract; |
|
The main event loop will be left and the application will close |
function IdentStr:ShortString; |
|
Returns an identification string which consists of the inheritance hierarchy of the class. |
property Title: string read FTitle write SetTitle; |
|
Property which is used to set the window title. Has no effect on a window framework which doesn't create a window by itself. |
property Events: TAdEventHandler read FEvents; |
|
Contains a list of events the window may receive. See also
|
property ClientWidth: integer read GetClientWidth; |
|
Returns the width of the client area of the window. |
property ClientHeight: integer read GetClientHeight; |
|
Retrurns the height of the client area of the window |
property CursorVisible: Boolean read FCursorVisible write SetCursorVisible; |
|
Use this property to show or hide the mouse cursor. |