TPlusMemo.StartStopKeys property
PlusMemo Help Send comments on this topic.
TPlusMemo.StartStopKeys property

Glossary Item Box

 

Applies to

TPlusMemo, TDBPlusMemo

 

Declaration

property StartStopKeys: TStartStopKeyList;

 

Description

The StartStopKeys property holds the list of keys delimiting sections where the TPlusMemo or TDBPlusMemo will automatically apply dynamic styling if ApplyStartStopKeys is True.  This property is available at run time and design time with read and write access.  A custom TStartStopKeyList editor is included in the PlusMemo package.

 

At create time, a TPlusMemo automatically creates a default empty TStartStopKeys object that you can load with your keys and their options.  If you change the list by assigning a value to this property, the original should be freed when it is not needed anymore to avoid a memory leak.  But you must keep in mind that when a TPlusMemo is destroyed, it also destroys the TStartStopKeyList object that its property StartStopKeys points to.  It is possible to set property StartStopKeys to nil to avoid this automatic behavior.

 

After changing the StartStopKeys content or assigning a new TStartStopKeyList to this property, subsequent text modification will take account of the new keys and options (if ApplyStartStopKeys is True).  If you want to reset all the dynamic section styling in the text that existed before the change, you should use method ReApplyKeywords.

 

The StartStopKeys property can also be edited at design time.  Upon double clicking on it in the Object Inspector, a dialog box will appear that enables to set the initial start keys, stop keys and their attributes.

 

See also

Keywords property

ApplyStartStopKeys property

Dynamic formatting in PlusMemo