Padding and Margins now fixed, but...

Until Delphi XE4 the meaning of Padding and Margins was reversed. With the new version they simply changed the behaviour. Now they work as expected, but they don't provide any converter. This means: your forms will be visually broken!

Search & Replace as a Fix


After manually changing the properties in the object inspector it seems that a simple search and replace will do the job.

I used Notepad++. I opened all *.fmx-files together and did a replace over all opened files 1.

You know how to swap two values? It doesn't work without a buffer:

  • Replace "Margins" to "Mxxgins"
  • Replace "Padding" to "Margins"
  • Replace "Mxxgins" to "Padding"
The respective author is responsible for articles (snaptips) within this service.

Leave a comment

xYou need to be logged in to leave a comment