Inserting RTF containing Hyperlinks not working

General TRichView support forum. Please post your questions here
Post Reply
andre@reltrans.co.za
Posts: 5
Joined: Mon Jan 30, 2012 6:24 am

Inserting RTF containing Hyperlinks not working

Post by andre@reltrans.co.za »

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

Post by Sergey Tkachenko »

Can you send me a sample project reproducing the problems? richviewgmailcom
andre@reltrans.co.za
Posts: 5
Joined: Mon Jan 30, 2012 6:24 am

Post by andre@reltrans.co.za »

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

Post 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?
andre@reltrans.co.za
Posts: 5
Joined: Mon Jan 30, 2012 6:24 am

Post by andre@reltrans.co.za »

Hi Sergey, my apologies I made a silly typo, everything works perfectly now.
Thanks
Post Reply