Please enable JavaScript to view this site.

KOL/MCK - User Guide

function NewEditbox( AParent: PControl; Options: TEditOptions ): PControl;

 

Creates edit box control. To create multiline edit box, similar to TMemo in VCL, apply eoMultiline in Options. Following properties, methods, events are special for edit controls:

 

OnChange

property OnChange: TOnEvent;

SelectAll

procedure SelectAll;

ReplaceSelection

procedure ReplaceSelection( const Value: KOLString; aCanUndo: Boolean );

DeleteLines

procedure DeleteLines( FromLine, ToLine: Integer );

Item2Pos

function Item2Pos( ItemIdx: Integer ): DWORD;

Pos2Item

function Pos2Item( Pos: Integer ): DWORD;

SavePosition

function SavePosition: TEditPositions;

RestorePosition

procedure RestorePosition( const p: TEditPositions );

UpdatePosition

procedure UpdatePosition( var p: TEditPositions; FromPos, CountInsertDelChars, CountInsertDelLines: Integer );

EditTabChar

function EditTabChar: PControl;

CanUndo

function CanUndo: Boolean;

EmptyUndoBuffer

procedure EmptyUndoBuffer;

Undo

function Undo: Boolean;

Text

property Text: KOLString;

SelStart

property SelStart: Integer;

SelLength

property SelLength: Integer;

Selection

property Selection: KOLString;

Count

property Count: Integer;

Items

property Items[ Idx: Integer ]: KOLString;

ItemSelected

property ItemSelected[ ItemIdx: Integer ]: Boolean;

TextAlign

property TextAlign: TTextAlign;

Ed_Transparent

property Ed_Transparent: Boolean;

 

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