Description | Hierarchy | Fields | Methods | Properties |
type unaWinApp = class(unaWinWindow)
Window class which can be used as main application window.
function run(): unaWinApp; |
|
function initWindow(): bool; override; |
|
function notifyDestroy(): bool; override; |
|
function onActivateApp(isActivate: bool; activeThreadId: unsigned): bool; override; |
|
function onClose(): bool; override; |
|
function onRunEnterLeave(enter: bool): bool; virtual; |
|
procedure AfterConstruction(); override; |
|
procedure BeforeDestruction(); override; |
|
procedure quit(exitCode: int = 0); |
|
procedure wakeUp(); |
property exitCode: int read f_exitCode write f_exitCode; |
|
property isRunning: bool read f_isRunning; |
function run(): unaWinApp; |
|
Main window cycle. Do not returns the control until WM_QUIT messages is received. |
function initWindow(): bool; override; |
|
function notifyDestroy(): bool; override; |
|
WM_NCDESTROY message handler. Calls quit() method to terminate the application. |
function onActivateApp(isActivate: bool; activeThreadId: unsigned): bool; override; |
|
WM_ACTIVATEAPP message handler. |
function onClose(): bool; override; |
|
function onRunEnterLeave(enter: bool): bool; virtual; |
|
procedure AfterConstruction(); override; |
|
procedure BeforeDestruction(); override; |
|
procedure quit(exitCode: int = 0); |
|
Terminates the application using the PostQuitMessage() routine. |
procedure wakeUp(); |
|
terminates application |
property exitCode: int read f_exitCode write f_exitCode; |
|
Specifies exit code used when terminating the application. |
property isRunning: bool read f_isRunning; |
|
Specifies exit code used when terminating the application. |
(c) 2012 Lake of Soft