TNumberHighlighter.ContextNum property
PlusMemo Help Send comments on this topic.
TNumberHighlighter.ContextNum property

Glossary Item Box

 

Applies to

TNumberHighlighter component

 

Declaration

property ContextNum: SmallInt;

 

Description

This property represents the context number associated with highlighted numbers.  It should not conflict with context numbers attributed to keywords, start-stop keys and other dynamically highlighted text in the TPlusMemo affected by the TNumberHighlighter.

 

The default value for ContextNum is 3000.  Worth noting is that TPlusMemo will trigger OnContext events when the user clicks on a highlighted number.  OnContext will pass the value ContextNum to the event handler.

 

If you change this property at run time, call TPlusMemo.ReApplyKeywords for the change to take effect immediately.  Otherwise, only subsequent editing operations will take account of the new ContextNum value.