trichview.com

trichview.support




Re: setting tabel->StyleNo shows table name instead of table


Return to index


Author

Message

Sergey Tkachenko

Posted: 06/20/2002 21:17:46


> I use AddItem(<table name>, table)  to add a table in RichViewEdit

> programmatically. The user should be able to insert his own text after the

> table in default Style "normalText". Therefore I set the text style of the

> table to normalText.

>

> Surprisingly the table name is shown instead of the table!


Surprisingly that application is not crushed :)

You must not modify StyleNo property of items (you can only modify StyleNo

for text items - from one non-negative value to another non-negative value).


>

> RichViewEdit1->AddNL("Summary",headerText,headerPara);

> TRVTableItemInfo* table= summaryTable();

> table->ParaNo= tablePara;

> table->StyleNo= normalText;

> RichViewEdit1->AddItem("SummaryTable", table);

>

> Perhaps I should not do that, but I don't see another way to set the

default

> TextStyle for following paragraphs. There is no Problem with the

ParaStyle.

> There I can set the NexParaNo property.


There is no possibility to define a text style of the next paragraph after

table. Table does not alter current text style (if you do not move caret

inside table cells), and previosly selected text style is used for the next

paragraph.

But you can add a new empty paragraph of desired style just after table.





Powered by ABC Amber Outlook Express Converter