TcxTrichViewEdit and URLs

General TRichView support forum. Please post your questions here
Post Reply
Pashtix
Posts: 5
Joined: Tue May 27, 2014 8:58 pm

TcxTrichViewEdit and URLs

Post 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!
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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);
Pashtix
Posts: 5
Joined: Tue May 27, 2014 8:58 pm

Post by Pashtix »

Thank you!

Seems like it works fine for now!
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

This problem is fixed in TRichView 16.6 + cxTRichViewEdit v1.5.8
(the both are available for registered users)
Post Reply