Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Msprogress bar controlled from a prg
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00479691
Message ID:
00479704
Vues:
34
>I have the ms progress bar on a form and it works correctly, no problems. However, I call a small report program from the form (a standalone prg). I need the progress bar to work while in the small report. When I call the report I send the form object reference so the prg knows how to send values to the control:
>
>lobject.ssiUpdate(10)
>ssiUpdate is a method on the form which does this:
>thisform.control1.value = 10)
>
>If I walk through this with the debugger, it works perfectly. If I run it, I can't see the progress bar change unless I put a wait state (ex: INKEY(1) ) in the ssiupdate() method. Putting Thisform.refresh() does not help. Somehow the form does not get refreshed if I return to the prg too quickly.
>Anyone know a way to force the progress bar to show the new value without waiting a second?
>Hope this is clear.

Does refreshing the control directly or setting focus to it help? For example:
thisform.control1.refresh()
- or -
thisform.control1.setfocus()
As an alternative, I think there is a thermomter class in the FFC.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform