Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Showing a modal progress bar
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00616707
Message ID:
00616723
Vues:
26
>I have a method in a form that is a long process. I would like to show a modal form with a progress bar to show the user how the process is going.
>
>ex:
oProg = newobject("progbar")
>oProg.minVal = 0
>oProg.maxVal = reccount()
>oProg.show(1)
>scan
>  oProg.curVal = recno()
>
>  ... do stuff ...
>
>endscan
>
>The problem is the modal part. VFP sits at the .show(1) and waits for the oProg form to be released.
>
>The only thing I can think of is to pass a reference of the current from and the method name to call to the progbar form and let the progbar call the method.
>
>Is there any other way? Anybody have any ideas?

You can't show a modal progress bar because it will stop the processing of the underlying operation (unless it's part of the form itself). I've got a modeless one that I'll share if you like.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform