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.
HorzCenteris 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
OnResizeevent, you can write the following code to do aHorzCenteralign:This will behave exactly like
HorzCenterfrom FireMonkey