trichview.com

trichview.support




Re: Formatting problem


Return to index


Author

Message

Alan McDonald

Posted: 12/31/2004 2:23:34


"Sergey Tkachenko" <svt@trichview.com> wrote in message

news:41d44bd3$5@support.torry.net...

> 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.

>

Please see my other post as well.

I set the control to have a none white background (the control not the

style). I have returned it to clWindow and I do not appear to get these red

frames anymore but the list index errors persist.

I do not use my own code. I have deleted all style lists which appear by

default. As said, the default for DBRichViewEdit is to have dynamic styles

so there is nothing to change here.

Alan





Powered by ABC Amber Outlook Express Converter