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

Monday, August 20, 2007

 

TWOLSHELLApplication

TWOLShellApplication object
Unit: WOLGUI01.
The TWOLShellApplication object is the shell of the application. It interacts directly with the main form of the application to show a minimum program. One is a class.

public Methods and Events:

constructor Create;
destructor Destroy; override;

procedure DisableTasks;
method used to stop all the tasks that are being executed for the application.

procedure EnableTasks;
method Used to start all the tasks of the application that had been stoped.

procedure CreateMainForm (WOLForm: TWOLFormClass; to var AForm);
Used to create the main form of an application. It does not have to be used to create secondary forms.

procedure Minimize;
Used to minimize the main window of the application.

procedure Restore;
Used to restore the windows that are minimized.

procedure Run;
Used to initiate the Loop of an application. After the creation of the main form, this method must be called to initiate the application that will only finish when the user to closes the main form.

procedure Terminate;
Used to force an application to end.

function GetChildByHandle (aHandle: TWOLHandle): TWOLVisualControl;
Used to return an object of the application by the handle. Only useful in project time.

procedure ProcessMessages; Used to process hanging messages that the GUI sent to the application.

function Execute (cmd: String; Visible: Boolean): Boolean;
Used to make the Shell of the GUI to execute any application.

function MessageBox (aTitle, aText: String; aFlags: TWOLMsgBoxFlags): TWOLModalResult;
Used to show a message box, such as alerts.


Properties of the Object:

It activates: Boolean (Only for Reading)
It indicates if the application is active (with focus) or not.

ExeName: String (Only for Reading)
It indicates the full name of the application.

Handle: TWOLHandle (Only for Reading)
It indicates application handle. In general, the main form.

HelpFile: String (For Reading and Writing)
It indicates the compete help file.

Hint: String (For Reading and Writing)
indicates a text that appears as hint (tip) in the icon of the application.

Icon: TWOLHIcon (For Reading and Writing)
indicates handle of the icon of the application.

MainForm: TWOLForm (For Reading and Writing)
It indicates the main form of the application.

Terminated: Boolean (Only for Reading)
indicates if the application finished or not.

Title: String (For Reading and Writing)
indicates the Heading of the Application.

Other functions of unit WOLGUI01 are:

function WOLGUIGetClassIndex (aName: String): Integer;
It inside returns the index from a class of the WOLGUI from data number.

procedure WOLGUIRegisterClass (aClass: TWOLRootClass);
A classm that must be descending of TWOLRoot, in library WOLGUI registers.

procedure WOLGUIUnRegisterClass (aClass: TWOLRootClass);
It removes of the list of registers a registered classroom already.

function WOLGUIGetClass (aName: String): TWOLRootClass;
It returns a class registered in the WOLGUI from the name of it.

function WOLGUIGetVisualClass (aName: String): TWOLVisualClass;
It returns a registered visual class in the WOLGUI from the name of it.

function WOLApplication: TWOLShellApplication;
It returns a handle for the application. Each application one must have only one WOLApplication.

Labels: ,


Comments: Post a Comment



<< Home

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