Page 1 of 1

Problem formatting selection with controls

Posted: Thu May 11, 2006 10:41 am
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,

Posted: Mon May 15, 2006 2:19 pm
by Sergey Tkachenko
Consider using a special item type (TRVLabelItemInfo) instead of TLabel.
You can find it in Demos\Addins\LabelItem\