trichview.com

trichview.support




Re: autosize cells


Return to index


Author

Message

Sergey Tkachenko

Posted: 10/08/2002 13:40:19


Autosize is not implemented.


There are only two options:


1) BestWidth != 0 - this value is used to calculate table width

2) BestWidth == 0

   a) if all columns have width defined in pixels,

   (i.e. each column has at least one cell with BestWidth>0,

    and there are no cells with BestWidth<0)

  table width = sum of widths of columns

  b) otherwise, it is resized like if BestWidth==-100.

(minimal widths required for cells contents are always taken into account).




> hi:

>

> how to define autosize cells. that not work!!

>

> Example 1 (autosize table)

> -------------------------------------

> TRVTableItemInfo* Table = new

> TRVTableItemInfo(rows,cols,RichViewEdit1->RVData);

> Table->BestWidth = 0;  //autosize at windows

>

> Example 2 (autosize cells ??)

> -------------------------------------

> TRVTableItemInfo* Table = new

> TRVTableItemInfo(rows,cols,RichViewEdit1->RVData);

> Table->Cells->BestWidth = 0;

>

> ciao.

>

>

> ---

> Outgoing mail is certified Virus Free.

> Checked by AVG anti-virus system (http://www.grisoft.com).

> Version: 6.0.393 / Virus Database: 223 - Release Date: 30/09/2002

>

>





Powered by ABC Amber Outlook Express Converter