TExtHighlighter.OnKeyword event
PlusMemo Help Send comments on this topic.
TExtHighlighter.OnKeyword event

Glossary Item Box

 

Applies to

TExtHighlighter component

 

Declaration

type TKeywordEvent = procedure(Sender: TObject;

                               StartKey, StopKey: TPlusNavigator;

                               KIndex: Integer;

                               var Accept: Boolean); of object;

 

property OnKeyword: TKeywordEvent;

 

Description

The OnKeyword event notifies your application when TExtHighlighter finds a keyword.  A handler can accept or reject the highlighting based on information passed to it, by assigning to variable parameter Accept, which is True on entry.  Parameter Sender is the TExtHighlighter instance which is doing its parsing work.  Parameter KIndex is the keyword index in property Keywords.

 

This event is intended for special highlighting effects achieved with our help.