Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Doevents
Message
De
05/01/2005 00:56:58
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
00974245
Message ID:
00974289
Vues:
35
>I have always battled this problem, so I'm going to the experts for the final say so on how to fix this. I have buttons that I want to set enabled to FALSE when a button is pressed and have hidden text become visible that says somthing like "Searching..." to let the user know that something is happening. I was told to use DOEVENTS after the code in the CLICK event that I reset the states of the buttons and the visible text, but the rest of the code in the CLICK event completes before the visual changes are made. How can I force the visual changes to happen before the rest of the code is executed?
>
>Thanks!
>Colombo.

Hi Jim. VFP does not refresh the form properly when it is in a very cpu intensive process. So if you make some change and immediately hit your processing loop the changes may not be reflected straight away.

So you need to make whatever visual changes to the form you want and then do either (1) pause your app with, for example, a quick INKEY(0.1) or (b) issue a DOEVENTS to tell VFP and Windows to process outstanding events (ie your form changes).
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform