Board index » delphi » Window State

Window State

If I ran a piece of software that moved one of the Delphi windows off
to far screen coordinates so that you could not see that window at
all on screen, how would I get it back?

Does anyone know if and where in the world might delphi save the
location
and size of the main form and the object inspector. I'm guessing it
might be in the dfm files but I'm not sure how to find that out.
--
Ryan Ruckley                    r...@haltech.com.au
Software Engineer
Invent Engineering              www.haltech.com.au

 

Re:Window State


Open Delphi and then select Open File, the select the List Files of Type
box and select *.DFM and then select the *.DFM file for the desired form.
The left and top coordinates should be the first ones listed.  Change them
to something on screen and then select Save File and close it.  Then open
your project and the form should be at the new coordinates.

Hope this helps!
--

Rodney E Geraghty
GERA-Tech
Ottawa, Canada
gera...@ibm.net

Ryan Ruckley <r...@haltech.com.au> wrote in article
<360591EC.2CD8E...@haltech.com.au>...

Quote
> If I ran a piece of software that moved one of the Delphi windows off
> to far screen coordinates so that you could not see that window at
> all on screen, how would I get it back?

> Does anyone know if and where in the world might delphi save the
> location
> and size of the main form and the object inspector. I'm guessing it
> might be in the dfm files but I'm not sure how to find that out.
> --
> Ryan Ruckley                       r...@haltech.com.au
> Software Engineer
> Invent Engineering         www.haltech.com.au

Re:Window State


In article <360591EC.2CD8E...@haltech.com.au>, Ryan Ruckley

Quote
<r...@haltech.com.au> writes:
>If I ran a piece of software that moved one of the Delphi windows off
>to far screen coordinates so that you could not see that window at
>all on screen, how would I get it back?

If you mean the windows in the IDE for one project, then delete the
MyProject.DSK file. Delphi will make another at the default positions.

If the problem is Delphi IDE windows for all new projects, delete the
Delphi??.DSK in the \Delphi sub-directory.

Alternatively you could open these files in a Text editor and change the
appropriate co-ordinates to on-screen values.

Alan Lloyd
alangll...@aol.com

Re:Window State


In article <360591EC.2CD8E...@haltech.com.au>, Ryan Ruckley

Quote
<r...@haltech.com.au> writes:
>If I ran a piece of software that moved one of the Delphi windows off
>to far screen coordinates so that you could not see that window at
>all on screen, how would I get it back?

If you mean the windows in the IDE for one project, then delete the
MyProject.DSK file. Delphi will make another at the default positions.

If the problem is Delphi IDE windows for all new projects, delete the
Delphi??.DSK in the \Delphi sub-directory.

Alternatively you could open these files in a Text editor and change the
appropriate co-ordinates to on-screen values.

Alan Lloyd
alangll...@aol.com

Re:Window State


Quote
Ryan Ruckley wrote in message <360591EC.2CD8E...@haltech.com.au>...
>If I ran a piece of software that moved one of the Delphi windows off
>to far screen coordinates so that you could not see that window at
>all on screen, how would I get it back?

>Does anyone know if and where in the world might delphi save the
>location
>and size of the main form and the object inspector. I'm guessing it
>might be in the dfm files but I'm not sure how to find that out.
>--

This information is stored in *.dsk files. There is a Delphi.dsk
file in the Delphi folder which stores global settings, and each
project also has its own .dsk file.

These files can be safely deleted (but be careful if you
decide to modify them).

--
Jeremy Collins
Kansai Business Systems

Other Threads