Home Units Hierarchy Routines All identifiers

Class unaWinMemo

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type unaWinMemo = class(unaWinEdit)

Description

Memo window.

Hierarchy

Overview

Methods

Public constructor create(const text: string; parent: unaWinWindow; x: int = 2; y: int = 2; w: int = 64; h: int = 18; style: unsigned = ES_LEFT or WS_CHILD or ES_MULTILINE or ES_AUTOVSCROLL or ES_AUTOHSCROLL or WS_HSCROLL or WS_VSCROLL or WS_TABSTOP or WS_VISIBLE); overload;
Public function getLine(index: unsigned = 0): string;
Public function replaceSel(const line: string): unaWinMemo;
Public function setSel(starting, ending: int): unaWinMemo;
Protected function onCommand(cmd: int; wnd: int): bool; override;

Description

Methods

Public constructor create(const text: string; parent: unaWinWindow; x: int = 2; y: int = 2; w: int = 64; h: int = 18; style: unsigned = ES_LEFT or WS_CHILD or ES_MULTILINE or ES_AUTOVSCROLL or ES_AUTOHSCROLL or WS_HSCROLL or WS_VSCROLL or WS_TABSTOP or WS_VISIBLE); overload;

Creates EDIT window with ES_MULTILINE style set by default.

Public function getLine(index: unsigned = 0): string;

Returns line from memo with specified index (starting form 0).

Line length is limited to 65535.

Public function replaceSel(const line: string): unaWinMemo;

Replaces selected text with given string.

Public function setSel(starting, ending: int): unaWinMemo;

Sets the selection in memo.

Protected function onCommand(cmd: int; wnd: int): bool; override;
 

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-09