In FireMonkey, there's a HorzCenter
option for the Align
property on most visual components.
What this does is it horizontally centers the component as well as sets the height to 100%.
In TMS WEB Core, I don't see the HorzCenter
option for Align
.
How can I horizontally center my panel in TMS WEB Core? I want to do the same as what HorzCenter
does in FMX.
HorzCenter
is not available in TMS WEB Core at all. If you want to achieve the same alignment asHorzCenter
, then it needs to be custom coded.In the form's
OnResize
event, you can write the following code to do aHorzCenter
align:This will behave exactly like
HorzCenter
from FireMonkey