Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use progressBar?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00093150
Message ID:
00982032
Vues:
58
Henry,

Thanks. I asked about progress bar for REQUERY(). Anyway, this info is quite helpful, though in my applications I prefer to use ProgBar from Rick Borup from Downloads section here. I made some cosmetic changes to that class and really like its appearance.

>Here's how you do it.
>
>1) Add the _THERM.VCX control to your form. For VFP 6, it should be located in your Microsoft Visual Studio\VFP98\FFC directory; it should be located in a similar directory for other versions. Let's suppose you rename the control to pbrProgress.
>
>2) Determine how many events of processing steps for which you want to display progress. For instance, lets say you have 12 proceswsing steps. You must initialize the control with this number of events:
>
>
>   ThisForm.pbrProgress.Reset(12)
>
>
>
>3) Initialize a counter to increment each event as it occurs. Let's call it lnCtr:
>
>
>   lnCtr = 0
>
>
>3) Just after each of these events, do the following:
>
>
>   lnCtr = lnCtr + 1
>   ThisForm.pbrProgress.Update(lnCtr)
>
>
>4) After the last event or processing step, finish the process:
>
>
>   ThisForm.pbrProgress.Complete()
>
>
>This is about all you need to do. This is just about exactly what I'm doing and it works fine. Hope it works for you, too.
>
>Henry
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform