CellBestWidth

General TRichView support forum. Please post your questions here
Post Reply
j&b
Posts: 182
Joined: Mon Sep 05, 2005 1:35 pm

CellBestWidth

Post 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
Sergey Tkachenko
Site Admin
Posts: 17306
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
j&b
Posts: 182
Joined: Mon Sep 05, 2005 1:35 pm

cellBestwidth

Post 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
Sergey Tkachenko
Site Admin
Posts: 17306
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

I thought I answered. Use Cell.Width to get the cell width on the screen.
Cell padding is table.CellPadding
Post Reply