Class TrMemoEx

Unit

Declaration

type TrMemoEx = class(TMemo)

Description

enhanced TMemo component which provides highlighting of words in text according list of words or highlighting of text between start and stop tag

Hierarchy

  • TMemo
  • TrMemoEx

Overview

Methods

Public function SearchText(const Search: string = ''; FromStart: Boolean = true; IgnoreCase: Boolean = true): Boolean;
Public function SearchNext: Boolean;

Properties

Published property HighlightWords: TStringList read FHighlightWords write SetHighlightWords;
Published property HighlightWholeWords: Boolean read FHighlightWholeWords write SetHighlightWholeWords default false;
Published property HighlightFromStr: string read FHighlightFromStr write SetHighlightFromStr;
Published property HighlightToStr: string read FHighlightToStr write SetHighlightToStr;
Published property HighlightedFontColor: TColor read FHighlightedFontColor write SetHighlightedFontColor default clWindowText;
Published property HighlightedBrushColor: TColor read FHighlightedBrushColor write SetHighlightedBrushColor default clMoneyGreen;
Published property HighlightFromToEx: TStringList read FHighlightFromToEx write SetHighlightFromToEx;
Published property PageBreaksCharNumber: string read FPageBreaksCharNumber write FPageBreaksCharNumber;
Published property OptionsEx: TrMemoOptions read FOptionsEx write FOptionsEx default[moAllowSetFont, moAllowLoadSaveFile];

Description

Methods

Public function SearchText(const Search: string = ''; FromStart: Boolean = true; IgnoreCase: Boolean = true): Boolean;

search and select text if found

Public function SearchNext: Boolean;

search and select next text occurrence

Properties

Published property HighlightWords: TStringList read FHighlightWords write SetHighlightWords;

list of hightlighted words, font color and background color can be defined in line on 2nd and 3rd place with TAB separator

Published property HighlightWholeWords: Boolean read FHighlightWholeWords write SetHighlightWholeWords default false;

define whether only whole words is highlighted

Published property HighlightFromStr: string read FHighlightFromStr write SetHighlightFromStr;

define start tag for hightlighting, text between start and stop tag is highlighted

Published property HighlightToStr: string read FHighlightToStr write SetHighlightToStr;

define stop tag for hightlighting, text between start and stop tag is highlighted

Published property HighlightedFontColor: TColor read FHighlightedFontColor write SetHighlightedFontColor default clWindowText;

define font color of highlighted text

Published property HighlightedBrushColor: TColor read FHighlightedBrushColor write SetHighlightedBrushColor default clMoneyGreen;

define background color of highlighted text

Published property HighlightFromToEx: TStringList read FHighlightFromToEx write SetHighlightFromToEx;

enhanced from-to hightlighting, list of FromStr + ToStr + font color + background color items is defined in line with TAB separator, use #9 instead of tab and #EOL# instead on end of line

Published property PageBreaksCharNumber: string read FPageBreaksCharNumber write FPageBreaksCharNumber;

define number of chars used for showing of pagebreaks inside of edit area

Published property OptionsEx: TrMemoOptions read FOptionsEx write FOptionsEx default[moAllowSetFont, moAllowLoadSaveFile];

define additional options


Generated by PasDoc 0.15.0.