hi,

I think the problem is with the order of creation..

try the below code it might solve the issue..

 Application.Initialize;
 Application.CreateForm(TFrmLogon, FrmLogon);
 Application.CreateForm(TFrmSplash, FrmSplash);
 FrmSplash.Show;
 Application.Run;

On FrmSplashShow event activate timer

On timer event close the FrmSplash screen




On Thu, 13 Aug 2009 07:07:11 +0530, Jeremy North <jeremy.no...@gmail.com> wrote:

So what is the actual problem?


On Thu, Aug 13, 2009 at 4:31 AM, Alan Colburn<aicolb...@hotmail.com> wrote:

Hi folks --

When I start my app with:

Data:=TData.Create(Application);
Application.Title := 'Performance Gradebook';
Application.CreateForm(TfrmMain, frmMain);
Application.Run;

everything works fine. (Data is a DataModule.)

However, when I add a splash screen I run into problems:

Data:=TData.Create(Application);
frmSplashScreen := TfrmSplashScreen.Create(nil);
try
 frmSplashScreen.Show;
 Application.Initialize;
 frmSplashScreen.Update;
 Application.Title := 'Performance Gradebook';
 Application.CreateForm(TfrmMain, frmMain);
 frmSplashScreen.Hide;
 finally
  frmSplashScreen.Free;
 end;
 Application.Run;

The problem relates specifically to users with dual monitors--see the subject line; it's in the Forms unit in the TCustomForm.SetWindowToMonitor block. I've never really used two monitors before, so I'm kind of lost in terms of what is happening. Do you have any thoughts?

Thanks, as always -- Al C.
_________________________________________________________________
Get your vacation photos on your phone!
http://windowsliveformobile.com/en-us/photos/default.aspx?&OCID=0809TL-HM
_______________________________________________
Delphi mailing list -> Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

_______________________________________________
Delphi mailing list -> Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

_______________________________________________
Delphi mailing list -> Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

Reply via email to