trichview.support
Re: Tag As String Question |
Author |
Message |
Kris |
Posted: 12/13/2004 22:08:44 How it works in RVF ? My way of this (begining is te same) 1) Edytor.InsertStringTag('VisibleText',Integer(StrNew(PChar('HideText')))); 2) I save this it using TDBRichViewEdit in database 3) Reload click on hyperlink and in event EdytorJump I do this: T:=Integer(StrNew(PChar('NewHideText'))); Edytor.SetCurrentTag(T); -- it works !!! Edytor.SetItemText(Edytor.CurItemNo,'NewVisibleText'); in editor appear strange chars, but hyperlink works i can change againt HideText. It is correct way ? Kris U�ytkownik "Sergey Tkachenko" <[email protected]> napisa� w wiadomo�ci news:[email protected]... > For RTF, it's possible only to store tags for hyperlinks (as hyperlink > targets) > > > > > Is it not possible to store a string tag in an RTF document like with the > > RVF documents? > > > > In my application, I make a call like: > > > > RVEdit.InsertStringTag('DisplayedText', Integer(StrNew('KeyToReplace'))); > > > > This information is saved into an RTF format file. When I later reload > this > > file into an RichView control and make the following call: > > > > RVData.GetItemTag(I), I get a returned value of 0 (nil) > > > > However the following call > > > > RVData.GetItemTextA(I) will return 'DisplayedText' as expected. > > > > Is there some option I am overlooking or what? > > |
Powered by ABC Amber Outlook Express Converter