This is basically what I had to do as well because it seems if both
the SplashForm and the MainForm are currently created, things like
ShowMainForm := False; and others to control the MainForm's visibility and
TaskBar Icon don't want to work as they should.  My problem is that I needed
to call two classes in the MainForm in order to provide the SplashForm with
data and a few functions.  So I had to redesign how all of this worked so
that no dependencies between them existed.  I don't particularly like having
to do this because it calls for redundant code.  Even when I placed these
classes in a third unit to be called so that no dependencies between these
two forms existed, the problem came back!  

from "Robert Meek" dba "Tangentals Design"
Creative Concepts Programming for Windows Vista
E-mail:  ffo...@comcast.net

See my full review of Dr. Bob's 'Delphi 2009 Development Essentials' at:
http://edn.embarcadero.com/article/39782 

Best quote from CNN Morning News  8/12/09:
"WTF...Carrie Underwood was #9!  Opps!  Did I say that again?" 


-----Original Message-----
From: delphi-boun...@elists.org [mailto:delphi-boun...@elists.org] On Behalf
Of Dean Stow
Sent: Thursday, August 13, 2009 10:00 AM
To: 'Borland's Delphi Discussion List'
Subject: RE: Unable to Get Handle On Monitor

Have you removed all forms from the Autocreate list in the Project |
Options?

The program may have a taskbar icon simply by virtue of running, but the
form can be prevented or delayed in displaying by not having it as
autocreate and then manually creating the splash screen, freeing it,
manually creating the main form and then continuing with Application.Run.

I hope this is helpful and I am not missing something.

Dean


-----Original Message-----
From: delphi-boun...@elists.org [mailto:delphi-boun...@elists.org] On Behalf
Of Robert Meek
Sent: Thursday, August 13, 2009 5:22 AM
To: 'Borland's Delphi Discussion List'
Subject: RE: Unable to Get Handle On Monitor

Hey Al,
        I too have experienced some major problems when attempting to
display a Splash Screen form using Delphi 2009.  Mine have been quite
different than yours, but there may be a connection.
        In one particular application, the Splash form was to display for 6
seconds and show shareware use information until the app is registered.
Afterwards, a checkbox allows the Splash form to be disabled.  However in
both situations, and no matter how, when, or where within the dpr code I
create it, the app's MainForm, which is supposed to remain invisible and
without a taskbar icon, becomes visible and does appear on the taskbar!
Very frustrating, and requiring a completely different approach than I
originally designed!
        I've come to the conclusion that Delphi is in some way getting
confused as to which of the two forms created within the dpr truly may be
the MainForm, and is altering basic properties toward some default settings
even though autocreate forms is False in the Project options.  
        And here I thought Unicode was going to give me trouble!

from "Robert Meek" dba "Tangentals Design"
Creative Concepts Programming for Windows Vista
E-mail:  ffo...@comcast.net

See my full review of Dr. Bob's 'Delphi 2009 Development Essentials' at:
http://edn.embarcadero.com/article/39782 

Best quote from CNN Morning News  8/12/09:
"WTF...Carrie Underwood was #9!  Opps!  Did I say that again?" 


-----Original Message-----
From: delphi-boun...@elists.org [mailto:delphi-boun...@elists.org] On Behalf
Of Alan Colburn
Sent: Wednesday, August 12, 2009 2:31 PM
To: delphi@elists.org
Subject: Unable to Get Handle On Monitor


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
Hurley and Associates believes positions are unique to each person's risk
bearing ability, marketing strategy, and crop conditions, therefore we give
no blanket recommendations. The risk of loss in trading commodities can be
substantial, therefore carefully consider whether such trading is suitable
for you in light of your financial condition. NFA Rules require us to advise
you that past performance is not indicative of future results, and there is
no guarantee that your trading experience will be similar to past
performance.

Hurley and Associates believes positions are unique to each person's risk
bearing ability, marketing strategy, and crop conditions, therefore we give
no blanket recommendations. The risk of loss in trading commodities can be
substantial, therefore carefully consider whether such trading is suitable
for you in light of your financial condition. NFA Rules require us to advise
you that past performance is not indicative of future results, and there is
no guarantee that your trading experience will be similar to past
performance.

_______________________________________________
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

Reply via email to