Insert hyperlink

ScaleRichView support and discussion (TRichView add-on for WYSIWYG editing)
Post Reply
prosoft
Posts: 24
Joined: Tue Jul 11, 2006 8:51 am

Insert hyperlink

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

Post 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)))
Post Reply