trichview.com

trichview.support




Re: As I can create a Table to the right of another?


Return to index


Author

Message

Sergey Tkachenko

Posted: 11/20/2003 20:20:45


1) Yes, table occupies a full line.

If you need two tables in the same line, you can

- create a table with two columns and invisible borders

- insert the first table in its left column,

- insert the second table in its right column.


2) Table can be aligned to the left/right/center.

It obeys Alignment of paragraph where it is inserted.

So the suggestion of Gennady was correct.


If you add table in TRichView with AddItem method, call


table.ParaNo := R;

rv.AddItem('', table);


If you insert table at the position of caret, call


rve.InsertItem('', table);

rve.ApplyParaStyle(R);


(where R - an index of paragraph style with Alignment=rvaRight)








Powered by ABC Amber Outlook Express Converter