🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Delphi Application Startup Problem!

#602
From: Jay L Cole
Date: Wed, 17 Sep 1997 00:00
45 lines
2178 bytes
"J�rgen H�gglund" <dataswed@algonet.se> wrote:


>--------------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.

Put an Application.ProcessMessages; right after each statusbar update.

StatusBar.SimpleText := 'foo';
Application.ProcessMessages;
LoadData;

That will allow the message queue a chance to flush.

Jay Cole

>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...

My real address is @bgn.mindspring.com to prevent spam.
Technical Details
Message-ID: <5vp8kf$t2n@camel4.mindspring.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <34201197.69F44A4A@algonet.se>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 108b0b,df99f0a9e5794c31
X-Google-Attributes: gid108b0b,public
X-Google-Thread: 10a7f1,df99f0a9e5794c31
X-Google-Attributes: gid10a7f1,public
X-Google-Thread: fd817,df99f0a9e5794c31
X-Google-Attributes: gidfd817,public
X-Google-Thread: 10baee,df99f0a9e5794c31
X-Google-Attributes: gid10baee,public
X-Google-Thread: f973d,df99f0a9e5794c31
X-Google-Attributes: gidf973d,public
From: opnek@addressintxt.com (Jay L Cole)
Subject: Re: Delphi Application Startup Problem!
Date: 1997/09/17
Message-ID: <5vp8kf$t2n@camel4.mindspring.com>
X-Deja-AN: 273338476
References: <34201197.69F44A4A@algonet.se>
X-Server-Date: 17 Sep 1997 18:47:43 GMT
Reply-To: opnek@addressintext.com
Organization: MindSpring Enterprises, Inc.
Newsgroups: comp.lang.pascal.delphi.misc,de.comp.lang.pascal.delphi,cern.delphi.general,alt.comp.lang.borland-delphi,alt.lang.delphi