TExtHighlighter.OnStart, OnStop events
PlusMemo Help Send comments on this topic.
TExtHighlighter.OnStart, OnStop events

Glossary Item Box

Applies to

TExtHighlighter component

 

Declaration

type TKeywordEvent = procedure(Sender: TObject;

                               StartKey, StopKey: TPlusNavigator;

                               KIndex: Integer;

                               var Accept: Boolean); of object;

 

property OnStart: TKeywordEvent;

property OnStop: TKeywordEvent;

 

Description

The OnStart event notifies your application when TExtHighlighter finds a start key.  Similarly, OnStop occurs when TExtHighlighter finds a stop key.

 

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 start-stop key index in property StartStopKeys.

 

These events are intended for special highlighting effects achieved with our help.