Custom text items in TRichView

Custom text items – new demo for TRichView and ScaleRichView

New demo projects are uploaded to the support forum: [Demo] Custom text items – TRichView.com

These demos show how to create a new item class for text items.
TRichView 19.2 or newer is required.
A custom text item class (TRVMyTextItemInfo) is implemented in CustomTextItem.pas.
It has several new properties: BorderWidth, BorderColor, AdditionalText.
The class implements saving and loading these properties in RVF.
These demos process OnDrawStyleText event to visualize BorderWidth and BorderColor properties.
(note: these properties are stored directly in item, not in a text style)

There are two demos: one for TRichViewEdit, one for ScaleRichView.

Share this article