| Description | Hierarchy | Fields | Methods | Properties | 
type unaConsoleApp = class(unaThread)
This class encapsulates basic Windows console application.
![]()  | 
f_executeComplete: bool; | 
![]()  | 
constructor create(const caption: wString = ''; icon: hIcon = 0; textAttribute: unsigned = FOREGROUND_BLUE or FOREGROUND_RED or FOREGROUND_GREEN or FOREGROUND_INTENSITY); | 
![]()  | 
destructor Destroy(); override; | 
![]()  | 
function doInit(): bool; virtual; | 
![]()  | 
function execute(globalIndex: unsigned): int; override; | 
![]()  | 
procedure AfterConstruction(); override; | 
![]()  | 
procedure run(enterStop: bool = true); | 
![]()  | 
property consoleInfo: pConsoleScreenBufferInfo read getConsoleInfo; | 
![]()  | 
property inputHandle: tHandle read f_inHandle; | 
![]()  | 
property outputHandle: tHandle read f_outHandle; | 
![]()  | 
f_executeComplete: bool; | 
![]()  | 
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.  | |
![]()  | 
destructor Destroy(); override; | 
![]()  | 
function doInit(): bool; virtual; | 
| 
 You can override this method to perform additional initialization. If this method returns false the application will not be started.  | |
![]()  | 
function execute(globalIndex: unsigned): int; override; | 
| 
 Processes Windows messages until the thread terminates.  | |
![]()  | 
procedure AfterConstruction(); override; | 
![]()  | 
procedure run(enterStop: bool = true); | 
| 
 Starts the application thread. This method returns only when user press the Enter key.  | |
![]()  | 
property consoleInfo: pConsoleScreenBufferInfo read getConsoleInfo; | 
![]()  | 
property inputHandle: tHandle read f_inHandle; | 
![]()  | 
property outputHandle: tHandle read f_outHandle; | 
(c) 2012 Lake of Soft