1

In Delphi XE3 I have a pre-build event that generates .pas files. The generated files are in the project's search path and this works fine.

When one of those files is currently opened in the Delphi editor, the pre-build event will still run fine and update the .pas file. The problem is just, that the Delphi-IDE does not notice that this file has changed. i.e. when I just switch to another program and then back to the Delphi-IDE the change will be recognized - and I will be asked if I want to update the file in the editor.

Is there a way to force this behavior in my pre-build event command?

TmTron
  • 17,012
  • 10
  • 94
  • 142
  • I doubt you'll be able to do this easily. The IDE checks when it is activated. If I were you I'd stop trying to force the ide to fit your design, and make the design fit in with the ide. – David Heffernan Mar 27 '15 at 13:54
  • You could write an IDE expert but I think that's a waste of time. Working this way seems fundamentally insane. – Warren P Mar 27 '15 at 15:33
  • 1
    Well, then please enlighten me: what is the Delph way or design of generating source files? – TmTron Mar 27 '15 at 19:31

0 Answers0