Home Units Hierarchy Routines All identifiers

Class unaConsoleApp

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type unaConsoleApp = class(unaThread)

Description

This class encapsulates basic Windows console application.

Hierarchy

Overview

Fields

Protected f_executeComplete: bool;

Methods

Public constructor create(const caption: wString = ''; icon: hIcon = 0; textAttribute: unsigned = FOREGROUND_BLUE or FOREGROUND_RED or FOREGROUND_GREEN or FOREGROUND_INTENSITY);
Public destructor Destroy(); override;
Protected function doInit(): bool; virtual;
Protected function execute(globalIndex: unsigned): int; override;
Public procedure AfterConstruction(); override;
Public procedure run(enterStop: bool = true);

Properties

Public property consoleInfo: pConsoleScreenBufferInfo read getConsoleInfo;
Public property inputHandle: tHandle read f_inHandle;
Public property outputHandle: tHandle read f_outHandle;

Description

Fields

Protected f_executeComplete: bool;
 

Methods

Public constructor create(const caption: wString = ''; icon: hIcon = 0; textAttribute: unsigned = FOREGROUND_BLUE or FOREGROUND_RED or FOREGROUND_GREEN or FOREGROUND_INTENSITY);

Creates console application class. You can specify caption, icon and text attributes to be used in the console box initialization.

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

You can override this method to perform additional initialization.

If this method returns false the application will not be started.

Protected function execute(globalIndex: unsigned): int; override;

Processes Windows messages until the thread terminates.

Public procedure AfterConstruction(); override;
 
Public procedure run(enterStop: bool = true);

Starts the application thread. This method returns only when user press the Enter key.

Properties

Public property consoleInfo: pConsoleScreenBufferInfo read getConsoleInfo;
 
Public property inputHandle: tHandle read f_inHandle;
 
Public property outputHandle: tHandle read f_outHandle;
 

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-09