trichview.support
Re: Setting Links |
Author |
Message |
Sergey Tkachenko |
Posted: 06/30/2003 13:52:07 Hi, 1) Do not use -1 as a first parameter of FindSuchStyle. Pass 0. 2) Are you sure that this style exists? If not, FindSuchStyle can return -1. In this case, you should add this style in the collection. 3) Your code in OnURLNeeded will not work in table cells. change urlLoc := Sender.GetItemTag(itemID); to urlLoc := RVData.GetItemTag(itemID); 4) SetCurrentTags sets tag to the item at the position of caret. Selection is ignored. So, if you select in down-top direction, caret is at the beginning of the selection, and tag can be assigned not to the selected but to the previous item. See the demo in Demos\Delphi\Assorted\Hypertext\CreateHyperlink for the code assigning tag to the selection. Or use RichViewActions: http://www.trichview.com/resources/actions/ > Hi Sergey, > > I am using your editor to create HTML documents, but I am currently having > some problems with Links |
Powered by ABC Amber Outlook Express Converter