Page 1 of 1
CellBestWidth
Posted: Tue Jan 03, 2006 10:35 am
by j&b
Hello,
Before I change the width of a cell (table.SetCellBestWidth(aValue,r,col);),
I want to know how width selected cell is.
I don't find a way though I look to table.pas and rvActions.pas.
Can someone help me ?
Jürgen
Posted: Tue Jan 03, 2006 10:39 am
by Sergey Tkachenko
Cells have undocumented Width and Height properties (do not remember just now if they include CellPadding*2 or not).
Please note that cell widths may depend on their contents and the control window width, while BestWidth values are fixed and user-defined.
cellBestwidth
Posted: Tue Jan 03, 2006 12:58 pm
by j&b
Hello Sergey,
before I change cellBestWidth I want to know how width of cell is. It is not necessary to know the correct width but I think it is good to know if cell.width=70 or 90.
Can you tell me how I get the value of cell.with (in rvActions you have a menu.Item). And if I need cellPadding please tell me how I get this value, too.
Thanks,
Jürgen
Posted: Tue Jan 03, 2006 10:25 pm
by Sergey Tkachenko
I thought I answered. Use Cell.Width to get the cell width on the screen.
Cell padding is table.CellPadding