Problem formatting selection with controls
Posted: Thu May 11, 2006 10:41 am
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,
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,