AndersJ
AndersJ

Reputation: 423

How to restore/clear form position after multi-monitor setup change

Within the IDE, when F12 toggles between code and form,
the forms are displayed outside the monitor borders, and therefore not visible.

This happens after a multi monitor setup has changed,
and the forms no longer open within the available new monitor screen areas.
One way to resolve this is to use the property inspector and set the Top/Left properties to 4 to make the forms visible.

This is however a lot of work, especially if many forms and possibly many projects are involved.

Is there a better way to reset the form locations once and for all,
so they are all visible with the new monitor setup?

Upvotes: 2

Views: 1015

Answers (2)

Jürgen
Jürgen

Reputation: 31

Close your Delphi IDE. Then, if your current project group file is xyz.groupproj, open the file xyz.dsk with an text editor. Look for section [UndockedDesigner] entry "Count" and change its value to zero.

[UndockedDesigner]
Count=0

That will force all design window positions to 0,0 on your main monitor.

Upvotes: 1

Tom Brunberg
Tom Brunberg

Reputation: 21045

There is nothing (AFAIK) in Delphi 6 IDE that would help. But assuming you are using Windows, the help is near, (tested on Windows 7):

Right-click on taskbar and select 'Cascade windows', this affects all windows in one go.

or

Alt-Tab to the window, press Alt-Space and then M (for move). Move the window with the arrow keys. This you would have to do seperately for each window.

Upvotes: 3

Related Questions