Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to force screen operations to complete?
Message
De
20/10/2002 09:04:30
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00713174
Message ID:
00713294
Vues:
15
>What is the best trick to get VFP/Windows to completely flush pending screen operations? Sometimes when I need to display an information message but then continue processing with no user intervention (such as a splash screen or a status screen during some long operation) I have problems with forms not completely painting... as if the GDI commands are given such low priority that they never complete. The only trick I know is to do:
>wait "" timeout 0.1
>Which wastes 1/10 second but usually has the desired effect. Is there a more elegant way?

Wrap the update in a LOCKSCREEN:
thisform.lockscreen = .t.
*
*  Do your screen updates
*
thisform.refresh()
thisform.lockscreen = .f.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform