Home Units Hierarchy Routines All identifiers

Class unaWinApp

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type unaWinApp = class(unaWinWindow)

Description

Window class which can be used as main application window.

Hierarchy

Overview

Methods

Public function run(): unaWinApp;
Protected function initWindow(): bool; override;
Protected function notifyDestroy(): bool; override;
Protected function onActivateApp(isActivate: bool; activeThreadId: unsigned): bool; override;
Protected function onClose(): bool; override;
Protected function onRunEnterLeave(enter: bool): bool; virtual;
Public procedure AfterConstruction(); override;
Public procedure BeforeDestruction(); override;
Public procedure quit(exitCode: int = 0);
Public procedure wakeUp();

Properties

Public property exitCode: int read f_exitCode write f_exitCode;
Public property isRunning: bool read f_isRunning;

Description

Methods

Public function run(): unaWinApp;

Main window cycle. Do not returns the control until WM_QUIT messages is received.

Protected function initWindow(): bool; override;
 
Protected function notifyDestroy(): bool; override;

WM_NCDESTROY message handler.

Calls quit() method to terminate the application.

Protected function onActivateApp(isActivate: bool; activeThreadId: unsigned): bool; override;

WM_ACTIVATEAPP message handler.

Protected function onClose(): bool; override;
 
Protected function onRunEnterLeave(enter: bool): bool; virtual;
 
Public procedure AfterConstruction(); override;
 
Public procedure BeforeDestruction(); override;
 
Public procedure quit(exitCode: int = 0);

Terminates the application using the PostQuitMessage() routine.

Public procedure wakeUp();

terminates application

Properties

Public property exitCode: int read f_exitCode write f_exitCode;

Specifies exit code used when terminating the application.

Public property isRunning: bool read f_isRunning;

Specifies exit code used when terminating the application.

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-09