trichview.com

trichview.support




Re: How to adjust Table column width?


Return to index


Author

Message

Sergey Tkachenko

Posted: 05/01/2004 11:54:18


Hi,


If you simply drag a rule between two columns, widths of two columns are

changed - the column to the left and the column to the right. Width of one

column is decreased, width of another one is increased. The component tries

to keep the table width unchanged on mouse resizing.


This is not always possible, because:

- one column is increased too much, so it's impossible to decrease other

column by the same value;

- columns widths are not defined directly but calculated according to

Cell.BestWidth values; minimal possible width of cell content is taken into

account; mouse resizing changes BestWidths, and column widths are

recalculated; it's not always possible to assign BestWidths so that column

widths become exactly like user shown with mouse;

- if user hold Shift, only column to the left is resized;

- if column to the left has width defined in %, only this column is resized

(this may be fixed in one of next updates).


Note: there are many improvements in the table layout algorithm in the

newest version (available for registered users), so in many cases resizing

is much more consistent.


> Hi,

>

> I use action demo program to create a table. When I use mouse to adjust

> column width, the other columns width gets changed at the same time and

the

> whole table's width increased too. How can I change the one column's with

> and not affect the other columns' width?

>

> Jianfei

>

>





Powered by ABC Amber Outlook Express Converter