Page 1 of 1

How to FIXED CELL

Posted: Tue Aug 12, 2014 8:33 am
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.

Posted: Tue Aug 12, 2014 12:21 pm
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.

Posted: Wed Aug 13, 2014 12:57 am
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]

Posted: Wed Aug 13, 2014 11:16 am
by Sergey Tkachenko
Sorry, the current version of TRichView does not support indication that the cell content does not fit the cell.