Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A Simple Fast Progress Bar
Message
De
04/01/2001 09:58:20
Jonathan Cochran
Alion Science and Technology
Maryland, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00459173
Message ID:
00459329
Vues:
23
Try the following slight modification. It gives a fixed width progress bar.
#Define DC_PROGRESSBARLENGTH    75

Procedure ShowProgress
LParameter lcMsgTxt,;
           lnPercent

Local lnCurrentBarLen
lnCurrentBarLen=Int(DC_PROGRESSBARLENGTH*Min(1,lnPercent))

_VFP.STATUSBAR = "  Progress:  |" + REPLICATE( "I", lnCurrentBarLen ) + REPLICATE( ".", DC_PROGRESSBARLENGTH - lnCurrentBarLen ) + "|  " + lcMsgTxt

Return
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform