On Tue, 13 Jun 2000, Alex Kouznetsov wrote:

> Before creating a main form as below , I also create some others in the code
> (splash screen,progress etc).
> I wonder if there are any hidden dangers in doing this. In fact I make
> program to work for a while without any main form at all. Is it OK ?

I dont see why not, I have a wee util I once wrote which was a console app
that once in a while opened a dialog window :)

For my splash I use the following code in the unit begin/end and two form
events...  This way they're not messing up my .dpr with any little code
hacks.

procedure TSplash.FormDeactivate(Sender: TObject);
begin
  Screen.Cursor := crDefault;
  Splash.Release;
end;

procedure TSplash.FormCreate(Sender: TObject);
begin
  lVersion.Caption := ApplicationVersion;
end;

begin
  Screen.Cursor := crHourGlass;
  Splash := TSplash.Create(nil);
  Splash.Show;
  Splash.Update
end.




-- 
I am naked, hear me purr.
Now Playing: Concerto Moon - Lonely Last Journey

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to