Page 1 of 1

Insert hyperlink

Posted: Tue Oct 07, 2008 2:58 pm
by prosoft
I can add hyperlink at end of document
FRVFEdit.RichViewEdit.AddNLTag('Hyperlink example',GetHypertextStyleNo(0), -1,Integer(StrNew(PChar(AHyper))));

How can i insert this on caret position?


Thanks Josef.

Posted: Tue Oct 07, 2008 6:08 pm
by Sergey Tkachenko

Code: Select all

FRVFEdit.RichViewEdit.CurTextStyleNo :=GetHypertextStyleNo(0);
FRVFEdit.RichViewEdit.InsertStringTag('Hyperlink example', Integer(StrNew(PChar(AHyper)))); 
Note 2011-Oct-22: Starting from TRichView v13.3, simply use AHyper instead of Integer(StrNew(PChar(AHyper)))