Re: Where to call RestoreDesktop?



On Tue, 29 Nov 2005 10:19:29 +0100, "Tom de Neef" <tdeneef@xxxxxxxx>
wrote:

>I want to save the state of the application's desktop to the registry on
>exit and reload on startup.
>In mainForm.Onclose I cycle through the application's forms and store size,
>location and visibility.
>
>But where should I put the reverse procedure?
>It must be executed at a time when all forms are created, just before they
>are displayed.
>That could be in each form's loaded method, but isn't there an event that
>signals that the application is ready to go 'live'.

Probably not a good idea, but you could look at doing something in the
..DPR just before Application.Run

Personally I think I would use the Loaded method in each Form
.



Relevant Pages

  • Where to call RestoreDesktop?
    ... exit and reload on startup. ... In mainForm.Onclose I cycle through the application's forms and store size, ...
    (comp.lang.pascal.delphi.misc)
  • Re: Where to call RestoreDesktop?
    ... > on exit and reload on startup. ... > In mainForm.Onclose I cycle through the application's forms and store ... > That could be in each form's loaded method, ... writing an event handler. ...
    (comp.lang.pascal.delphi.misc)