Very good, I have the following problem:
I'm trying to create a simple runtime form where
TLabel is displayed, and I need them to be centered and at a certain height each. I have been able to center them correctly using
TLabel.Align := alClient and
TLabel.Alignment := taCenter , but I can not assign the height I need, because
TLabel.Layout only lets me specify above, center or below.
How can I assign the
TLabel a height value such as
ClientHeight div 3 ?
I have this code to create a label:
with TLabel.Create(Self) do begin Align := alClient; Alignment := taCenter; Top := (F.ClientHeight div 3) * 2; caption:= 'Texto de la etiqueta'; Font.Size:= 18; Font.Color := RGB(128, 0, 0); Parent:= F; end;
It seems that when applying
Alignment ignores what I specified in
Top , then I do not know how to give the desired value.
I am using
Lazarus v1.6RC1 in
Windows 10 . The application is also for
Windows 10 .
Thanks in advance.