trichview.com

trichview.support




Trouble setting tags


Return to index


Author

Message

Martin Holmes

Posted: 08/13/2004 15:27:16


Hi there,


I'm trying to set the tag of an item, and I'm getting odd results.

Here's a bit of sample code:


//Select the text

   RVSetSelection(RVE, Start, Finish);


//Restyle the new text

   RVE.ApplyTextStyle(tsMyStyle);

   RVE.Format;


//Now let's get the selected item and set its tag

   RVE.SetCurrentTag(254);

   RVE.Format;

   ShowMessage(IntToStr(RVE.GetCurrentTag));


This shows the correct tag number. However, if in a later function I ask

for the tag numbers of the items in sequence, this value is found to be

the tag of a previous item (two items prior in the sequence), and the

tag of the item containing this selected text is just the default, 0.

Any idea why this might be the case?


Cheers,

Martin





Powered by ABC Amber Outlook Express Converter