These demos show how to create a new item class for text items.
The demos require TRichView 19.2 or newer.
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.
There are two demos: one for TRichViewEdit, one for ScaleRichView.
These demos process OnDrawStyleText event to visualize BorderWidth and BorderColor properties.
(note: these properties are stored directly in an item, not in a text style)
[Demo] Custom text items
-
- Site Admin
- Posts: 17602
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: