Page 1 of 1

TRIschEdit and active link to a local file

Posted: Mon Aug 20, 2012 4:12 pm
by redbeardster
Hello!
I'd like to implement the following : I have a file on a local hard disk and want to insert an active link to TRichEdit component that will refer to this file. Is it possible and how it can be accomplished?

Thanks in advance.

Posted: Tue Aug 21, 2012 7:09 am
by Sergey Tkachenko
Hello,

The standard code for hyperlinks (in ActionTest of RichViewActions, or in Demos\*\OfficeConverters\) stores the link target in the item tag, and processes OnJump event to call ShellExecute.
This method works both for URLs and local files.