🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.delphi.misc
Article #601

Delphi Application Startup Problem!

#601
From: J�rgen H�gglund
Date: Wed, 17 Sep 1997 00:00
67 lines
2932 bytes

--------------EF8276A2AD7B516805A21D1A
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hello!

I hope there is someone out there who can help me with this problem.
I want to show event/progress of initialization in my main form's
statusbar.

Something like:

procedure TMainForm.FormCreate(Sender: TObject);
begin
  // Draw form and it's contents here
  StatusBar.SimpleText := 'Step 1 of 3: Loading data';
  LoadData;
  StatusBar.SimpleText := 'Step 2 of 3: Gathering information';
  GatherInfo;
  StatusBar.SimpleText := 'Step 3 of 3: Initializing everything';
  InitializeMyData;
end.

Well, I hope You get the idea.
What's so frustrating is that I can't get my form to show before I start
executing my initialization code, so the result will be that StatusBar
shows 'Step 3 of 3:...' and all my code is already run.

Waiting for some answer...
/JH


--------------EF8276A2AD7B516805A21D1A
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<HTML>
Hello!

<P>I hope there is someone out there who can help me with this problem.
<BR>I want to show event/progress of initialization in my main form's statusbar.

<P>Something like:

<P><TT>procedure TMainForm.FormCreate(Sender: TObject);</TT>
<BR><TT>begin</TT>
<BR><TT>&nbsp; // Draw form and it's contents here</TT>
<BR><TT>&nbsp; StatusBar.SimpleText := 'Step 1 of 3: Loading data';</TT>
<BR><TT>&nbsp; LoadData;</TT>
<BR><TT>&nbsp; StatusBar.SimpleText := 'Step 2 of 3: Gathering information';</TT>
<BR><TT>&nbsp; GatherInfo;</TT>
<BR><TT>&nbsp; StatusBar.SimpleText := 'Step 3 of 3: Initializing everything';</TT>
<BR><TT>&nbsp; InitializeMyData;</TT>
<BR><TT>end.</TT><TT></TT>

<P>Well, I hope You get the idea.
<BR>What's so frustrating is that I can't get my form to show before I
start executing my initialization code, so the result will be that StatusBar
shows 'Step 3 of 3:...' and all my code is already run.

<P>Waiting for some answer...
<BR>/JH
<BR>&nbsp;</HTML>

--------------EF8276A2AD7B516805A21D1A--
Technical Details
Message-ID: <34201197.69F44A4A@algonet.se>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f973d,df99f0a9e5794c31,start
X-Google-Attributes: gidf973d,public
X-Google-Thread: 108b0b,df99f0a9e5794c31,start
X-Google-Attributes: gid108b0b,public
X-Google-Thread: 10a7f1,df99f0a9e5794c31,start
X-Google-Attributes: gid10a7f1,public
X-Google-Thread: 10baee,df99f0a9e5794c31,start
X-Google-Attributes: gid10baee,public
X-Google-Thread: fd817,df99f0a9e5794c31,start
X-Google-Attributes: gidfd817,public
From: "J�rgen H�gglund" <dataswed@algonet.se>
Subject: Delphi Application Startup Problem!
Date: 1997/09/17
Message-ID: <34201197.69F44A4A@algonet.se>
X-Deja-AN: 273297423
X-Priority: 3 (Normal)
Organization: Data-Swede
Newsgroups: comp.lang.pascal.delphi.misc,de.comp.lang.pascal.delphi,cern.delphi.general,alt.comp.lang.borland-delphi,alt.lang.delphi