Helo
I'm sure Delphi doesn't have such a thing. I also looked for a solution to this problem.
But, one thing you can do: you can write your own Delphi addon using OTA (Open Tools API). I know that there are several classes that can notify you when something needs to be saved. You can intercept this event and decide whether you want to save it (in your case, if it is DFM).
By the way, if you have plans to make such a component, tell me. :)
EDIT:
I found a piece of code that can help you. Extracted from http://www.gexperts.org/otafaq.html
TMyFormNotifier = class(TNotifierObject, IOTANotifier, IOTAFormNotifier) protected procedure FormActivated; procedure FormSaving; procedure ComponentRenamed(ComponentHandle: TOTAHandle; const OldName, NewName: string); end;
Rafael colucci
source share