Page 1 of 1

TcxTrichViewEdit and URLs

Posted: Mon May 23, 2016 3:14 pm
by Pashtix
Hello!

We've replaced the TRichViewEdit with the TcxTRichViewEdit and found the problems with hyperlinks. If I insert a hyperlink using standard TRVAction then I can jump there from the editor. If I save the editor's content to *.rtf then the link becomes no-clickable (using standard TRVAction). If I save the content to DB, close and reopen the window then the link is not clickable also. This worked fine with the TRichViewEdit but stopped working with TcxTRichViewEdit. Also if I try to open the link which was saved to DB using the TRichViewEdit earlier then it opens the folder with the executable file but not the webpage.

Can you provide us with some solution or sample project please?

Thanks!

Posted: Mon May 23, 2016 6:19 pm
by Sergey Tkachenko
I'll check tomorrow, but I have an idea why it can happen.
If OnReadHyperlink and OnWriteHyperlink events are not assigned, the default code for saving/loading tags as hyperlink targets is executed.
In cxTRichViewEdit, the wrapper events are assigned, so the default code is not called.
I'll fix it in the next update. Currently, you can process these events.
In OnReadHyperlink, call:

Code: Select all

  ItemTag := Target;
In OnWriteHyperlink, call:

Code: Select all

Target := RVData.GetItemTag(ItemNo);

Posted: Mon May 23, 2016 11:29 pm
by Pashtix
Thank you!

Seems like it works fine for now!

Posted: Tue Jun 07, 2016 8:46 am
by Sergey Tkachenko
This problem is fixed in TRichView 16.6 + cxTRichViewEdit v1.5.8
(the both are available for registered users)