2
votes

I have a code in Delphi 7 application. When I open it in Delphi XE4 and afterwards when I compare the both codes in SVN, I notice that all the dfm files have been changed. The changes which I notice is like:

Width = 443 --changed in Delphi XE4
Height = 277 --changed in Delphi XE4
ExplicitWidth = 443 --added automatically in Delphi XE4
ExplicitHeight = 277 --added automatically in Delphi XE4

How should I handle this unexpected behavior of RAD Studio?

1
Let it be... ;-) - TLama
@TLama - but its causing problems to me. Suppose I have changed only 2-3 lines in dfm file which already contains 3000 lines. When I open to compare it, instead of 2-3 lines change, I am seeing 300 lines change. Is there no solution of this kind of problem? - user1556433
Commit the change to your VCS and you'll see no change. Those Explicit... properties are added just when you open the form with no change for the first time as far as I know. - TLama
@TLama - okay, thanks for suggestion - user1556433

1 Answers

4
votes

If you want to suppress the generation of those properties in the .dfm you can use Andy Hausladen's DDevExtensions tool.

Personally, I think you may be better off accepting this new reality and admitting those changes into your reply once and for all. Sometimes it's easier to go along with a change like this rather than fighting it.