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!
TcxTrichViewEdit and URLs
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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:
In OnWriteHyperlink, call:
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;
Code: Select all
Target := RVData.GetItemTag(ItemNo);
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: