I use rvActionInsertTable to insert a table into RichViewEdit. Unfortunately, the cells in this table are all vertically aligned to the Top. So how can I preset this action to have all cells vertically aligned to Middle instead?
RichView 13.6.3
Delphi XE2
Windows 7 x64 SP1
rvActionInsertTable: How to preset vertical Middle alignment
-
- Posts: 57
- Joined: Tue Jul 13, 2010 10:50 pm
-
- Posts: 57
- Joined: Tue Jul 13, 2010 10:50 pm
Typo
Sorry for the typo. Of course the action name is:
r v A c t i o n I n s e r t T a b l e
r v A c t i o n I n s e r t T a b l e
-
- Posts: 57
- Joined: Tue Jul 13, 2010 10:50 pm
Found a solution:
Code: Select all
procedure TformHV.rvActionInsertTable1Inserting(Sender: TrvActionInsertTable; table: TRVTableItemInfo);
var
i: Integer;
begin
for i := 0 to table.RowCount - 1 do
table.SetRowVAlign(rvcMiddle, i);
end;
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: