Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Splash Form Not Showing Progress
Message
De
10/01/2002 07:43:32
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00602687
Message ID:
00602910
Vues:
19
>I have a splash form in an application, that updates a progress bar, which doesn't work when called in the main.prg. The program code is this:
>
>LOCAL loSplash
>DO FORM splash NAME loSplash LINKED
>loSplash.SHOW()
>
>And the code in the Splash form's timer event is :
>
>loProgress = THISFORM.oleProgress
>IF loProgress.VALUE + 10 > loProgress.MAX
> loProgress.VALUE = 0
>ENDIF
>loProgress.VALUE = loProgress.VALUE + 10
>
>The progress bar part works if I do "DO FORM splash NAME loSplash LINKED" in the command window though.

Hi Michael

I assume that, in the program you are doing other things while the form is up and VFP is simply "caching" the changes to the progress bar. You need to force the form to re-draw itself in order to see the progress.

Either add an explicit "ThisForm.Draw()" to the timer event or include a DoEvents command.
----
Regards
Andy Kramek
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform