.comment-link {margin-left:.6em;}

Monday, August 20, 2007

 

twolform

TWOLForm object
Unit: WOLGUI01.
Descendant of TWOLVisualControl. It is the basic window of the GUI in use. An application must contain at least a window or form represented for this object.

Public Methods and Events:

constructor Create (AOwner: TWOLRoot); override;

destructor Destroy; override;

procedure Refresh; override;

function IsMainForm: Boolean;
Used to verify if the form it is the main form of the application in use.

procedure Close;
Used to close a form. If the form will be the main window of the application, The program will be closed.

procedure AlignChildren (theRect: TWOLRect); override;

procedure RemoveControl (Ctrl: TWOLBase); override;

procedure InsertControl (Position: TWOLSmallInt; Ctrl: TWOLBase); override;

procedure HandleNeeded; override;

procedure SetHandle (anyHandle: TWOLHandle); virtual;
Used to set a handle to a form. It must be used with care because previous handle previous is not released.

procedure InitWindow; override;
Used internally to initiate a window object. It initiates, creates a form, creating its children and creating it's events events.

procedure InitWindowModal; virtual;
Used internally to initiate a form (window) modal.

procedure CreateWnd (to var aParams: TWOLParams); override;

procedure CreateGUIParams (to var aParams: TWOLParams; const wClass: TWOLClassType); override;

procedure DestroyWnd; override;

function ShowModal: TWOLModalResult;
Used to show a form in modal way. A modal form receives all the messages from the application while it is active.

procedure Show; override;

procedure AllocResources; override;

procedure FreeResources; override;

function WndPaint (to var Message: TWOLMessage): Boolean; override;

function WndKeyboard (to var Message: TWOLMessage): Boolean; override;

function WndMouse (to var Message: TWOLMessage): Boolean; override;

function WndNotify (to var Message: TWOLMessage): Boolean; override;

function WndCommand (to var Message: TWOLMessage): Boolean; override;

function WndProc (to var Message: TWOLMessage): Boolean; override;

function WndText (to var Message: TWOLMessage): Boolean; override;

Object Properties:

Icon: TWOLHIcon (For Reading and Writing)
It indicates handle of the icon that the form must have.

MenuBar: TWOLMenuBar (For Reading and Writing)
It indicates the menu bar of the form.

MDIChildCount: TWOLSmallInt (Only for Reading)
It returns the number from forms children of type MDI.

MDIChild [Index: TWOLSmallInt]: TWOLForm (Only for Reading)
It indicates of forms the children of the current form.

WindowRect: TWOLRect (Only for Reading)
It indicates the area of the form. This is total external area and not the area shown.

Published properties and Events:

ModalResult: TWOLModalResult (For Reading and Writing)
It indicates the modal result of the form. When used with ShowModal, this value is modified for the caller according to the action of the user.

WindowState: TWOLFormState (For Reading and Writing)
It indicates the initial state of the form.

WindowBorder: TWOLFormBorder (For Reading and Writing)
It indicates the edge type of the form.

WindowIcons: TWOLFormIcons (For Reading and Writing)
This indicates what icons the form will contain.

WindowPlace: TWOLFormPos (For Reading and Writing)
It indicates the positioning of the form in relation to the screen.

VertScrollBar: TWOLFormSBar (For Reading and Writing)
It indicates the bar of vertical roller of the form.

HorzScrollBar: TWOLFormSBar (For Reading and Writing)
It indicates the bar of horizontal roller of the form.

OnActivate: TWOLEvent (For Reading and Writing)
Event when the form is activated by mouse or keyboard.

OnClose: TWOLBoolEvent(For Reading and Writing)
Event performed before the form is closed.

OnCloseQuery: TWOLBoolEvent (For Reading and Writing)
Event when the form is for being closed.

OnDeactivate: TWOLEvent (For Reading and Writing)
Event when the form is disactivated (loses the focus).

OnHelp: TWOLEvent (For Reading and Writing)
Event when the form receives a message of help from the user.

OnInitForm: TWOLEvent (For Reading and Writing)
Event when the form finishes the initiation.

Other events of the ascendants of TWOLForm also are performed.
Other properties of the ascendants of TWOLForm also are given.

Labels: ,


Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?