How to FIXED CELL

General TRichView support forum. Please post your questions here
Post Reply
kisshexuxia
Posts: 29
Joined: Mon May 07, 2012 2:36 am

How to FIXED CELL

Post by kisshexuxia »

How to protect and fixed cell size.
1.Input does not wrap.

1.I am so to solve the problem
ParaInfo.Options + [rvpaoNoWrap]

2.Input is greater than the cell length tips beyond the cell length range.
I don't know how to solve.
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

It's possible only for the whole table, not only for some specified cell.
Include rvtoIgnoreContentWidth in table.Options.
Assign Cell.BestWidth to specify its width.
kisshexuxia
Posts: 29
Joined: Mon May 07, 2012 2:36 am

Post by kisshexuxia »

Sergey Tkachenko wrote:It's possible only for the whole table, not only for some specified cell.
Include rvtoIgnoreContentWidth in table.Options.
Assign Cell.BestWidth to specify its width.
THANKS I TRY TO SET BestWidth AND BestHeight .IT'S OK

Code: Select all

table := TRVTableItemInfo.CreateEx(2, 2, RichViewEdit1.RVData);
table.Options := table.Options + [rvtoIgnoreContentWidth, rvtoIgnoreContentHeight];
for r := 0 to table.RowCount-1 do
  for c := 0 to table.ColCount-1 do begin
    table.Cells[r,c].BestWidth := 100;
    table.Cells[r,c].BestHeight := 100;
  end;
RichViewEdit1.InsertItem('', table);

------------------------------------------------------------------
How to judge the input text over the BestWidth or BestHeight to remind users.

What triggered the method USES .








[/code]
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Sorry, the current version of TRichView does not support indication that the cell content does not fit the cell.
Post Reply