Class THunSpellMemo

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type THunSpellMemo = class(TMemo)

Description

Hierarchy

Overview

Methods

Protected procedure MouseDown(Button: TMouseButton; Shift: TShiftState; X, Y: Integer); override;
Protected procedure MouseUp(Button: TMouseButton; Shift: TShiftState; X, Y: Integer); override;
Protected procedure Change; override;
Protected procedure SetCaretPos(Value: TPoint);
Protected function GetCaretPos: TPoint; override;
Public constructor Create(AOwner: TComponent); override;
Public function GetWordAt(const APos: TPoint): string;
Public function GetWordAtCaret: string;
Public procedure ReplaceWordAt(const APos: TPoint; const ANew: string);
Public procedure ReplaceWordAtCaret(const ANew: string);
Public procedure Refresh;

Properties

Published property AddMenu: boolean read fAddMenu write fAddMenu default false;
Published property AutoSuggest: boolean read fAutoSuggest write fAutoSuggest default true;
Public property CaretPos: TPoint read GetCaretPos write SetCaretPos;
Published property HunSpell: THunSpell read fHunSpell write SetHunSpell;
Published property RightClickMoveCaret: boolean read fRightClickMoveCaret write fRightClickMoveCaret;
Published property RightEdge: integer read fRightEdge write SetRightEdge;
Published property RightEdgeColor: TColor read fRightEdgeColor write SetRightEdgeColor default clSilver;
Published property UnderlineColor: TColor read fUnderlineColor write SetUnderlineColor default clRed;
Public property VisibleLines: integer read GetVisibleLines;

Description

Methods

Protected procedure MouseDown(Button: TMouseButton; Shift: TShiftState; X, Y: Integer); override;

Protected declarations

Protected procedure MouseUp(Button: TMouseButton; Shift: TShiftState; X, Y: Integer); override;
 
Protected procedure Change; override;
 
Protected procedure SetCaretPos(Value: TPoint);
 
Protected function GetCaretPos: TPoint; override;
 
Public constructor Create(AOwner: TComponent); override;

Public declarations

Public function GetWordAt(const APos: TPoint): string;

Get word at position.

Parameters
APos
The position.
Returns

The word.

Public function GetWordAtCaret: string;

Get word at caret position.

Returns

The word.

Public procedure ReplaceWordAt(const APos: TPoint; const ANew: string);

Replace word at position.

Parameters
APos
The position.
ANew
The new word.
Public procedure ReplaceWordAtCaret(const ANew: string);

Replace word at caret position.

Parameters
ANew
The new word.
Public procedure Refresh;

Redraw the window

Properties

Published property AddMenu: boolean read fAddMenu write fAddMenu default false;

If True appends an Add word menu item to the suggestion menu.

Published property AutoSuggest: boolean read fAutoSuggest write fAutoSuggest default true;

If True it automatically pop ups a menu with suggestions for wrong words.

Public property CaretPos: TPoint read GetCaretPos write SetCaretPos;

Caret position.

Published property HunSpell: THunSpell read fHunSpell write SetHunSpell;

THunSpell object to use for spell checking.

Published property RightClickMoveCaret: boolean read fRightClickMoveCaret write fRightClickMoveCaret;

If True the caret pos is moved to the cursor pos with a right click.

Published property RightEdge: integer read fRightEdge write SetRightEdge;

Show a line at char pos.

Published property RightEdgeColor: TColor read fRightEdgeColor write SetRightEdgeColor default clSilver;

Color of the line.

Published property UnderlineColor: TColor read fUnderlineColor write SetUnderlineColor default clRed;

Color to underline words.

Public property VisibleLines: integer read GetVisibleLines;

Count of visible lines.


Generated by PasDoc 0.12.0 on 2011-01-24 07:59:29