Progress Bars.

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Progress Bars.

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:53 am

by Phil >> Sun, 23 Apr 2000 5:05:44 GMT

How do you make a progress bar go? I would like one on my form (load_bar) to actually do something. So that when the method is half-way then the bar shows 50% and when it is done it shown 100%.
I need this because the method which I am using takes a long time and The user will most likely think that the program has stalled the system.

Philip
--------------------------
"Is it some sort of killer Codemaster
Guardian destroying virus, that will keep
replicating and replicating until it takes
over Bob's entire body? Huh, Huh?
--------------------------

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Progress Bars.

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:53 am

by JADE Kid - Ray Hidayat >> Mon, 24 Apr 2000 0:42:12 GMT

This is simple!

The progress bar has 2 properties.
...partsDone
...partsInJob

It is really simple.
You just set how many jobs it has.

load_bar.partsInJob := 200;

And as it does each job...

load_bar.partsDone := load_bar.partsDone + 1;

So then you will have a really cool progress bar that moves and shows how much it has done.

--
Ray Hidayat
JADE Kid - 2000
www.jadekids.com


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 15 guests