Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disable buttons during process - odd behaviour
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00856233
Message ID:
00856368
Vues:
26
Caroline,

You might want to try this as well

ThisForm.SetAll("Enabled", .F., "cmd")
doevents
* do the long running thing

The doevents forces VFP into the event handler which should give time for the disabling to appear before the SQL kicks off.

The .Refresh() method only updates the displayed value in the control from its .ControlSource, since your buttons aren't bound there's not anything to refresh.

>>
>>ThisForm.SetAll("Enabled", .F., "cmd")
>>THISFORM.DRAW()
>>
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform