[DUG] Delphi - failing to minimise - think I might have the magic bit

Mike Stokes mike at webdata.co.nz
Thu Jun 28 14:10:47 NZST 2007


Hello Phil,

To make the main form not visible on application run, you have add 
Application.ShowMainForm := false; in the dpr before calling 
Application.Run which starts the main Application Thread.

For example:

  Application.Initialize;
  Application.CreateForm(TfrmMain, frmMain);
  Application.ShowMainForm := false;
  Application.Run;

All the best,
Mike

Phil Scadden wrote:
> If I comment out the slow code in the Formshow, then app behaves normally.
> It would appear there is a timeout in the activation sequence somewhere.
> Why the minimize failed on some machines but not others was question of
> how fast they were. Also interesting that if mainform is set to visible false
> at design, then somewhere it is set visible, but after all form creation.
>
> I will try moving the formshow code into another thread.
>
> ----------------------------------------------------------
> Phil Scadden, GNS Science Ltd
> 764 Cumberland St, Private Bag 1930, Dunedin, New Zealand
> Ph +64 3 4799663, fax +64 3 477 5232
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at delphi.org.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject: unsubscribe
>
>
>
>   



More information about the Delphi mailing list