TpmCollapseHandler.BarPen property
PlusMemo Help Send comments on this topic.
TpmCollapseHandler.BarPen property

Glossary Item Box

 

Applies to

TpmCollapseHandler component

 

Declaration

property BarPen: TPen;

 

Description

This property controls the appearance of the collapse bar in a TPlusMemo.  Collapsible blocks are indicated with a vertical bar in the left margin whose color and width are controlled by BarPen.Color and BarPen.Width.

 

BarPen.Width also controls the amount horizontal indentation for blocks with collapsibility level greater than one.   Since the collapse bar and sign are drawn in the left margin, it is recommended to set property TPlusMemo.LeftMargin equal to at least (BarPen.Width+1)*MaxLevels.  Otherwise some overlapping of the collapse bar and sign may occur with the text content.  Note however that since the collapse bar is drawn semi transparently, this effect might be tolerated for some applications.

 

See also

Topic Collapsible blocks in PlusMemo

Property TPlusMemo.CollapseHandler