trichview.com

trichview.support




Re: Formatting problem


Return to index


Author

Message

Sergey Tkachenko

Posted: 12/30/2004 21:34:33


Red border around the paragraph means using incorrect paragraph style (with

index >= RVStyle.ParaStyles.Count).

White on red text also means using incorrect text style (with index >=

RVStyle.TextStyles.Count).

More exactly, properties of RVStyle.TextStyles.InvalidItem and

RVStyle.ParaStyles.InvalidItem are used to draw this text and paragraph.

It's implemented so to prevent crashes and must not happen if the program

works correctly.


Do you use RichViewActions or your own code for making editing operations?

If the latter, check it where incorrect style indices may appear.

I guess you use RVStyle.ParaStyles.Count instead of

RVStyle.ParaStyles.Count-1 to access the last added paragraph style. Doing

this, you only change properties of RVStyle.ParaStyles.InvalidItem.


Doublecheck if "Allow adding styles dynamically" is set of the editor (this

setting should be done for each editor separately, if you have several

RichViews, check all of them). But this option affects only saving and

loading.


> Sorry to be a bother but I can't seem to get my DBRichViewEdits to save

the

> correc formatting.





Powered by ABC Amber Outlook Express Converter