Please enable JavaScript to view this site.

KOL/MCK - User Guide

function NewForm( AParent: PControl; const Caption: KOLString ): PControl;

 

Creates form window object and returns pointer to it. If You use only one form, and You are not going to do applet button on task bar invisible, it is not necessary to create also special applet button window - just pass your (main) form object to Run procedure. In that case, it is a good idea to assign pointer to your main form object to Applet variable immediately following creating it - because some objects (e.g. TTimer) want to have Applet assigned to something.

 

Following methods, properties and events are useful to work with forms (ones common for all visual objects, such as Left, Top, Width, Height, etc. are not listed here - look TControl for it):

 

OnMessage

property OnMessage: TOnMessage;

OnClose

property OnClose: TOnEventAccept;

OnQueryEndSession

property OnQueryEndSession: TOnEventAccept;

OnMinimize

property OnMinimize: TOnEvent;

OnMaximize

property OnMaximize: TOnEvent;

OnRestore

property OnRestore: TOnEvent;

OnFormClick

property OnFormClick: TOnEvent;

ParentForm

function ParentForm: PControl;

FormParentForm

function FormParentForm: PControl;

CreateWindow

function CreateWindow: Boolean; virtual;

Close

procedure Close;

IconLoad

procedure IconLoad( Inst: Integer; ResName: PKOLChar );

IconLoadCursor

procedure IconLoadCursor( Inst: Integer; ResName: PKOLChar );

Show

procedure Show;

ShowModal

function ShowModal: Integer;

Hide

procedure Hide;

MinimizeNormalAnimated

procedure MinimizeNormalAnimated;

RestoreNormalMaximized

procedure RestoreNormalMaximized;

IsMainWindow

function IsMainWindow: Boolean;

GotoControl

procedure GotoControl( Key: DWORD );

RemoveStatus

procedure RemoveStatus;

StatusPanelCount

function StatusPanelCount: Integer;

CenterOnCurrentScreen

function CenterOnCurrentScreen: PControl;

Icon

property Icon: HIcon;

Caption

property Caption: KOLString;

ModalResult

property ModalResult: Integer;

Modal

property Modal: Boolean;

ModalForm

property ModalForm: PControl;

WindowState

property WindowState: TWindowState;

HasBorder

property HasBorder: Boolean;

HasCaption

property HasCaption: Boolean;

CanResize

property CanResize: Boolean;

StayOnTop

property StayOnTop: Boolean;

Border

property Border: ShortInt;

Margin

property Margin: ShortInt;

AlphaBlend

property AlphaBlend: Byte;

StatusText

property StatusText[ Idx: Integer ]: KOLString;

SimpleStatusText

property SimpleStatusText: KOLString;

StatusPanelRightX

property StatusPanelRightX[ Idx: Integer ]: Integer;

StatusWindow

property StatusWindow: HWND;

 

KOL / MCK User Guide - Created by Carl Peeraer - Diamant Soft, based on the work of Vladimir Kladov - Artwerp.be

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Nav Header: ALT+n
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Exit Menu/Up: ESC