Search code examples
delphifiremonkeydelphi-10.1-berlin

Delphi FMX - Is there a way to get the X, Y co-ordinates of a form in Firemonkey?


I am trying to port an application from VCL to Firemonkey (using Delphi 10.1 Berlin). One of the things that my VCL application does is store the main form's position (x, y) and size (height, width) in an INI file when closed and restore the form to those values when opened again.

In FireMonkey, I am able to get the form's Height and Width, but can't find the X, Y position. Does anyone know how to get these values?


Solution

  • Use the Form's Left and Top properties (same as you do in VCL).