trichview.com

trichview.support




Setting Links


Return to index


Author

Message

Ben

Posted: 06/30/2003 3:23:15


Hi Sergey,


I am using your editor to create HTML documents, but I am currently having

some problems with Links


I use the following code to create the link

FActiveEditor.ApplyTextStyle(rvStyle.TextStyles.FindSuchStyle(-1,fs,[rvfiJum

p,rvfiSize,rvfiFontName,rvfiAllCaps])); //Change the font to a compatable

Link Font

FActiveEditor.TopLevelEditor.SetCurrentTag(Integer(StrNew(PChar(URL))));

//Add in the URL


I use the following code when saving the URL in the OnURLNeeded event

Sender.GetJumpPointLocation(id,RVData,itemID);

urlLoc :=  Sender.GetItemTag(itemID);

url := PChar(urlLoc);


This code works great if I use a double click to get my selection, however

if i get my selection by dragging the mouse or using the keyboard then I can

not extract my link when I try to save the document.


What am i missing to get text that is selected without using the double

click mathod?


Regards

Ben





Powered by ABC Amber Outlook Express Converter