Page 1 of 1

Inserting RTF containing Hyperlinks not working

Posted: Mon Feb 13, 2012 4:17 am
I use the RVActions based sample editor in my code as a text editor to edit RVF Docs. I then use a RVrichViewEdit in readonly mode as a viewer of the doc. I place "itemTag := target;" in the OnReadHyperlink event handler but when I process OnJump events when the user clicks on hyperlinks, the links are garbage. I have tried to set a breakpoint on the line in the OnReadHyperlink code but it never triggers. I am using Delphi 7.
When I create only one hyperlink in the RVF doc, it appears to work but when I have muliples, not. I also sometimes get itemindex out of bounds errors when I click a hyperlink far down in doc.
What am I missing?

Posted: Mon Feb 13, 2012 12:41 pm
by Sergey Tkachenko
Can you send me a sample project reproducing the problems? richviewgmailcom

Posted: Mon Feb 13, 2012 2:56 pm
I have narrowed it down. The hyperlinks that I battle to process are all contained in a single cell of a table in the RVF doc. When I remove them from the table and place them directly on the page in the document I can read them fine.

Posted: Mon Feb 13, 2012 6:57 pm
by Sergey Tkachenko
1) What's your version of TRichView? Some intermediate 13.x versions had problems with hyperlinks in tables.
2) What's your code in OnJump event?

Posted: Mon Feb 13, 2012 7:41 pm
Hi Sergey, my apologies I made a silly typo, everything works perfectly now.
Thanks