Is it possible to make a compiler directive for the .dfm properties introduced on Delphi 11 like
{$IFDEF CompilerVersion > 34.0}
PixelsPerInch = 96
{$ENDIF}
So other developers that use 10.4.2 or lower are able to use the same unit without having to ignore the error and/or then commiting the form without that attribute?
Tried doing it that exact way listed above but it doesn't compile, it throws a Linker error on the line of the conditional.
Thanks in advance!
One option is to use DFMCleaner which is included in JVCL: JEDI Visual Component Library.
After JVCL is unzipped it is in
\jvcl\devtools\DFMCleanerThere are other such utilities available as well. You can $IFDEF around code in the OnCreate to make sure the property is set how you want it in newer Delphi versions if you are worried it will get lost.