It looks like you're pretty close. Try setting the Align
to just TAlignLayout.alClient
. Then set the TextAlign
to TTextAlign.taCenter
.
The Align
property is part of TControl
and comes into play anytime there is a control with a visual aspect to it.
The TextAlign
property only involves controls descended from TTextControl
, like a TLabel
. (Also: TTextControl
descends from TControl
).