Hello!
I want to align the text in the first line vertical = vtaCenter.
I do so:
procedure TForm2.AdvStringGrid1GetAlignment(Sender: TObject; ARow,
ACol: Integer; var HAlign: TAlignment; var VAlign: TVAlignment);
begin
if ARow = 0 then
begin
VAlign := vtaCenter;
end;
end;
procedure TForm2.FormCreate(Sender: TObject);
begin
AdvStringGrid1.RowHeights [0] := 50;
AdvStringGrid1.Cells[0, 0] := '22';
end;
As a result of this code, there is no alignment = vtaCenter.
How can I make the text alignment vertical = vtaCenter?
Version of TAdvStringGrid = 6.2.7.1