I have some code in my app which switches to the screen resolution the app was designed to work in (800x600). This works fine.
My native screen rez is 1280x1024 and every time I run my app while in the Delphi IDE, on exit, all the Delphi windows are bunched up in the top left corner.
Enabling it for the final compile and disabling it while working on it in the IDE is getting to be a bit of a pain - especially when I forget to enable it for the final compile and only discover it after I've re-built the installer and installed it on my test machine! :)
Is there any way to have the screen rez code executed ONLY when the finished exe is run - but not when working in the IDE.
I have a feeling that it's using the compiler directives, ($IFDEF?), but I can't find any info on exactly how it's done.
I'm sure this is one of those very easy questions to answer... if you know how it's done! :)