trichview.com

trichview.support




Re: Getting the text of an item using TCustomRVItemInfo


Return to index


Author

Message

Sergey Tkachenko

Posted: 07/05/2004 21:05:26


> TCustomRVItemInfo(AllItems[i]).StyleNo


This is real item style.

>=0 - text item

<0 - non-text item


> TCustomRVItemInfo(AllItems[i]).AssociatedTextStyleNo

This is only for non-text items. This is a text style associated with this

non-text item.

Used in: tabs, labelitem. For other items returns -1.


> TCustomRVItemInfo(AllItems[i]).GetActualStyleNo

The same as StyleNo if you do not use text styles default for paragraphs


> I'm still struggling to find a way to get the text. Perhaps I could

> explain what I'm actually trying to do here. What I'm creating is a

> footnote system, basically, and every time a footnote is inserted, I

> need to find the number of the previous footnote so that I can determine

> the appropriate number for the new one, and renumber any subsequent

> ones. If there's a better way to do this, I'll be very glad to have it

> pointed out to me, but at the moment all I can think of is to build an

> index of items and move up and down the list, to find which ones have

> the footnote style, then read or change their text (= footnote number).

> I could store the footnote number in the tag for each item, but I'd

> still have to display it in the text, and I'd still have to change it

> for all subsequent footnotes, so I still have to be able to write the

> text of the item.


I understand, and I can give you a code to make this efficiently.

What your footnote is? A special item type?





Powered by ABC Amber Outlook Express Converter