Page 1 of 1

table-Cell shall not be higher

Posted: Sun Jan 04, 2009 4:29 pm
by j&b
I have 3 tables in a TDBRichViewEdit.

One of these tables has only one cell where I can insert 5 lines.
When I insert a 6. row (by pressing RETURN at the end of the 5. line), table will be higher.
But I want that this Cell (of this table) shall not be higher , so that the other lines of the memo do not get down

Re: table-Cell shall not be higher

Posted: Sun Jan 04, 2009 4:41 pm
by j&b
I think I have a solution:

procedure TForm1.Button1Click(Sender: TObject);
begin
if (memo.CanChange) and (memo.GetCurrentItemEx(TRVTableItemInfo, rve, TCustomRVItemInfo(rveTable))) then begin
if rvtoIgnoreContentHeight in rveTable.Options then
rveTable.Options:=rveTable.Options-[rvtoIgnoreContentHeight]
else rveTable.Options:=rveTable.Options+[rvtoIgnoreContentHeight];
memo.change;
end;
end;