Home Units Hierarchy Routines All identifiers

Class unaWinConsoleApp

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type unaWinConsoleApp = class(unaWinApp)

Description

Simple console-like application main window class.

Hierarchy

Overview

Methods

Public constructor create(hasGUi: bool; const caption, copy: string; const iniFile: wString = ''; icon: hIcon = 0; captionHeight: unsigned = 32; btnExit: bool = true; btnStart: bool = false; btnStop: bool = false; style: unsigned = WS_OVERLAPPEDWINDOW; exStyle: unsigned = WS_EX_CONTROLPARENT);
Public destructor Destroy(); override;
Protected function doInit(): bool; virtual;
Protected function onCommand(cmd, wnd: int): bool; override;
Protected function onDestroy(): bool; override;
Protected procedure idle(); override;
Protected procedure onStart(); virtual;
Protected procedure onStop(); virtual;

Properties

Public property btnExit: unaWinButton read f_btnExit;
Public property btnStart: unaWinButton read f_btnStart;
Public property btnStop: unaWinButton read f_btnStop;
Public property captionHeight: unsigned read f_captionHeight;
Public property hasGUI: bool read f_hasGUI;

Description

Methods

Public constructor create(hasGUi: bool; const caption, copy: string; const iniFile: wString = ''; icon: hIcon = 0; captionHeight: unsigned = 32; btnExit: bool = true; btnStart: bool = false; btnStop: bool = false; style: unsigned = WS_OVERLAPPEDWINDOW; exStyle: unsigned = WS_EX_CONTROLPARENT);

Creates console-like window.

Public destructor Destroy(); override;
 
Protected function doInit(): bool; virtual;

This method can be used to perform additional initialization.

Protected function onCommand(cmd, wnd: int): bool; override;

WM_COMMAND message handler. cmd values below 10 are reserved for internal usage.

Protected function onDestroy(): bool; override;

WM_DESTROY message handler.

Protected procedure idle(); override;

This method is used to display "console" memo messages.

Protected procedure onStart(); virtual;

Called on the start of application.

Protected procedure onStop(); virtual;

Called on the end of application.

Properties

Public property btnExit: unaWinButton read f_btnExit;

Exit button.

Public property btnStart: unaWinButton read f_btnStart;

Start button.

Public property btnStop: unaWinButton read f_btnStop;

Stop button.

Public property captionHeight: unsigned read f_captionHeight;

Height of upper panel with buttons.

Public property hasGUI: bool read f_hasGUI;
 

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-09