9

I noticed that if I set the Delphi 2010 IDE window to be something other than maximized it automatically maximizes when I run an application friom inside the IDE. When the program is closed, the IDE window resizes back to the size it was prior to running the program.

Is there anyway to turn off this annoying behavior?

1 Answers1

13

This happens because you have defined a Debug Desktop. You can either switch off the Debug Desktop feature, or define a different desktop view to be your Debug Desktop.

The settings are under the View | Desktops menu if I recall correctly.

I find this feature very powerful, especially combined with my multiple monitors. The debug desktop lives on a separate monitor so it doesn't overlap with my app window. And I can also configure the layout of call stack, watches, locals windows that I don't show in my standard desktop.

David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
  • Thank you, works like a champ. View|Desktops|Set Debug Desktop... [set to none]. I sure am taking a lot more from SO than I'm giving. – Michael Riley - AKA Gunny Jul 31 '11 at 18:03
  • Thanks for pointing this out - finding a way of turning off this gratuitous nonsense put an end to a constant annoyance (since some harebrain decided it might be fun to have the desktops maximise themselves on every switch, regardless of their former state). Start debugging, restore IDE from maximised state to something workable, do stuff, stop debugging, restore IDE from maximised state to something workable, ..., ad infinitum. – DarthGizka Feb 16 '19 at 22:21
  • 1
    P.S.: the disruption can be further minimised by disabling 'Hide designers on run' under Tools / Options / Environment Options and/or switching the default desktop to the debug desktop. – DarthGizka Feb 16 '19 at 22:27
  • To be noted that if a debug desktop is defined, Delphi will SOMETIMES jump to a random monitor to random IDE window size. – Gabriel Aug 05 '22 at 20:15