Problem formatting selection with controls

General TRichView support forum. Please post your questions here
Post Reply
Kabong
Posts: 1
Joined: Thu May 11, 2006 10:28 am

Problem formatting selection with controls

Post by Kabong »

Hi,

We have some TRichView based text editors that allow the user to insert a TLabel conmponent inside the text. This TLabel is used has a text place-holder that is replaced before printing. We are using RvActions with these editors and all works fine, except when the user selects some text that includes one or more labels, and formats it. All text gets formatted, except the TLabels. I have made some code inside the RichViewEditor.OnStyleConversion in order to change the TLabel's font, color and style and it works when I call the RichViewEditor.ApplyStyleConversion.

How can I know when text formatting is done by the rvActions ?

Regards,
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Consider using a special item type (TRVLabelItemInfo) instead of TLabel.
You can find it in Demos\Addins\LabelItem\
Post Reply