I want to add some comments the automatically generated form (dfm) files. In pas we can comment using // or {} but how to add comment in dfm?
Is it possible to add comment? I tried add comment at end of dfm but when i reopen comment gets deleted.
thanks or help.
No, that is not possible. A DFM file is nothing but a representation of the object structure. Normally you shouldn’t read nor write any DFM file directly (unless you know exactly what you do). Earlier versions of Delphi used the internal binary format for DFM files, which can still be achieved by changing a setting. There is no place for comments in that, too.
Update:
You can still write your documentation right above the declaration of the control in the PAS file.