Please enable JavaScript to view this site.

KOL/MCK - User Guide

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

 

Creates rich text edit control. A rich edit control is a window in which the user can enter and edit text. The text can be assigned character and paragraph formatting, and can include embedded OLE objects. Rich edit controls provide a programming interface for formatting text. However, an application must implement any user interface components necessary to make formatting operations available to the user.

 

Note: eoPassword, eoMultiline options have no effect for RichEdit control. Some operations are supersided with special versions of those, created especially for RichEdit, but in some cases it is necessary to use another properties and methods, specially designed for RichEdit (see methods and properties, which names are starting from RE_...).

 

Following properties, methods, events are special for edit controls:

 

OnSelChange

property OnSelChange: TOnEvent;

OnRE_InsOvrMode_Change

property OnRE_InsOvrMode_Change: TOnEvent;

OnProgress

property OnProgress: TOnEvent;

OnRE_OverURL

property OnRE_OverURL: TOnEvent;

OnRE_URLClick

property OnRE_URLClick: TOnEvent;

BeginUpdate

procedure BeginUpdate;

SelectAll

procedure SelectAll;

ReplaceSelection

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

DeleteLines

procedure DeleteLines( FromLine, ToLine: Integer );

RE_TextSizePrecise

function RE_TextSizePrecise: Integer;

RE_FmtStandard

function RE_FmtStandard: PControl;

RE_CancelFmtStandard;

procedure RE_CancelFmtStandard;

RE_LoadFromStream

function RE_LoadFromStream( Stream: PStream; Length: Integer; Format: TRETextFormat; SelectionOnly: Boolean ): Boolean;

RE_SaveToStream

function RE_SaveToStream( Stream: PStream; Format: TRETextFormat; SelectionOnly: Boolean ): Boolean;

RE_LoadFromFile

function RE_LoadFromFile( const Filename: KOLString; Format: TRETextFormat; SelectionOnly: Boolean ): Boolean;

RE_SaveToFile

function RE_SaveToFile( const Filename: KOLString; Format: TRETextFormat; SelectionOnly: Boolean ): Boolean;

RE_HideSelection

procedure RE_HideSelection( aHide: Boolean );

RE_SearchText

function RE_SearchText( const Value: KOLString; MatchCase, WholeWord, ScanForward: Boolean; SearchFrom, SearchTo: Integer ): Integer;

RE_WSearchText

function RE_WSearchText( const Value: KOLWideString; MatchCase, WholeWord, ScanForward: Boolean; SearchFrom, SearchTo: Integer ): Integer;

RE_NoOLEDragDrop

function RE_NoOLEDragDrop: PControl;

CanUndo

function CanUndo: Boolean;

EmptyUndoBuffer

procedure EmptyUndoBuffer;

Undo

function Undo: Boolean;

FreeCharFormatRec

procedure FreeCharFormatRec;

SelStart

property SelStart: Integer;

SelLength

property SelLength: Integer;

Selection

property Selection: KOLString;

Count

property Count: Integer;

Items

property Items[ Idx: Integer ]: KOLString;

MaxTextSize

property MaxTextSize: DWORD;

TextSize

property TextSize: Integer;

RE_TextSize

property RE_TextSize[ Units: TRichTextSize ]: Integer;

RE_CharFmtArea

property RE_CharFmtArea: TRichFmtArea;

RE_CharFormat

property RE_CharFormat: TCharFormat;

RE_Font

property RE_Font: PGraphicTool;

RE_FmtBold

property RE_FmtBold: Boolean;

RE_FmtItalic

property RE_FmtItalic: Boolean;

RE_FmtStrikeout

property RE_FmtStrikeout: Boolean;

RE_FmtUnderline

property RE_FmtUnderline: Boolean;

RE_FmtUnderlineStyle

property RE_FmtUnderlineStyle: TRichUnderline;

RE_FmtProtected

property RE_FmtProtected: Boolean;

RE_FmtProtectedValid

property RE_FmtProtectedValid: Boolean;

RE_FmtHidden

property RE_FmtHidden: Boolean;

RE_FmtHiddenValid

property RE_FmtHiddenValid: Boolean;

RE_FmtLink

property RE_FmtLink: Boolean;

RE_FmtFontSize

property RE_FmtFontSize: Integer index( 12 shl 16 ) or CFM_SIZE;

RE_FmtFontSizeValid

property RE_FmtFontSizeValid: Boolean;

RE_FmtAutoBackColor

property RE_FmtAutoBackColor: Boolean;

RE_FmtFontColor

property RE_FmtFontColor: Integer index( 20 shl 16 ) or CFM_COLOR;

RE_FmtFontColorValid

property RE_FmtFontColorValid: Boolean;

RE_FmtAutoColor

property RE_FmtAutoColor: Boolean;

RE_FmtBackColor

property RE_FmtBackColor: Integer index(( 64 + 32 ) shl 16 ) or CFM_BACKCOLOR;

RE_FmtFontOffset

property RE_FmtFontOffset: Integer index( 16 shl 16 ) or CFM_OFFSET;

RE_FmtFontOffsetValid

property RE_FmtFontOffsetValid: Boolean;

RE_FmtFontCharset

property RE_FmtFontCharset: Integer index( 25 shl 16 ) or CFM_CHARSET;

RE_FmtFontCharsetValid

property RE_FmtFontCharsetValid: Boolean;

RE_FmtFontName

property RE_FmtFontName: KOLString;

RE_FmtFontNameValid

property RE_FmtFontNameValid: Boolean;

RE_ParaFmt

property RE_ParaFmt: TParaFormat;

RE_TextAlign

property RE_TextAlign: TRichTextAlign;

RE_TextAlignValid

property RE_TextAlignValid: Boolean;

RE_Numbering

property RE_Numbering: Boolean;

RE_NumStyle

property RE_NumStyle: TRichNumbering;

RE_NumStart

property RE_NumStart: Integer;

RE_NumBrackets

property RE_NumBrackets: TRichNumBrackets;

RE_NumTab

property RE_NumTab: Integer;

RE_NumberingValid

property RE_NumberingValid: Boolean;

RE_Level

property RE_Level: Integer;

RE_SpaceBefore

property RE_SpaceBefore: Integer;

RE_SpaceBeforeValid

property RE_SpaceBeforeValid: Boolean;

RE_SpaceAfter

property RE_SpaceAfter: Integer;

RE_SpaceAfterValid

property RE_SpaceAfterValid: Boolean;

RE_LineSpacing

property RE_LineSpacing: Integer;

RE_SpacingRule

property RE_SpacingRule: Integer;

RE_LineSpacingValid

property RE_LineSpacingValid: Boolean;

RE_Indent

property RE_Indent: Integer index( 20 shl 16 ) or PFM_OFFSET;

RE_IndentValid

property RE_IndentValid: Boolean;

RE_StartIndent

property RE_StartIndent: Integer index( 12 shl 16 ) or PFM_STARTINDENT;

RE_StartIndentValid

property RE_StartIndentValid: Boolean;

RE_RightIndent

property RE_RightIndent: Integer index( 16 shl 16 ) or PFM_RIGHTINDENT;

RE_RightIndentValid

property RE_RightIndentValid: Boolean;

RE_TabCount

property RE_TabCount: Integer;

RE_Tabs

property RE_Tabs[ Idx: Integer ]: Integer;

RE_TabsValid

property RE_TabsValid: Boolean;

RE_AutoKeyboard

property RE_AutoKeyboard: Boolean;

RE_AutoFont

property RE_AutoFont: Boolean;

RE_AutoFontSizeAdjust

property RE_AutoFontSizeAdjust: Boolean;

RE_DualFont

property RE_DualFont: Boolean;

RE_UIFonts

property RE_UIFonts: Boolean;

RE_IMECancelComplete

property RE_IMECancelComplete: Boolean;

RE_IMEAlwaysSendNotify

property RE_IMEAlwaysSendNotify: Boolean;

RE_OverwriteMode

property RE_OverwriteMode: Boolean;

RE_DisableOverwriteChange

property RE_DisableOverwriteChange: Boolean;

RE_Text

property RE_Text[ Format: TRETextFormat; SelectionOnly: Boolean ]: KOLString;

RE_Error

property RE_Error: Integer;

RE_AutoURLDetect

property RE_AutoURLDetect: Boolean;

RE_URL

property RE_URL: PKOLChar;

RE_Transparent

property RE_Transparent: Boolean;

RE_Zoom

property RE_Zoom: TSmallPoint;

 

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

 

Like NewRichEdit, but to work with older RichEdit control version 1.0 (window class 'RichEdit' forced to use instead of 'RichEdit20A', even if library RICHED20.DLL found and loaded successfully). One more difference - OleInit is not called, so the most of OLE capabilities of RichEdit could not working.

 

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