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:
00856247
Vues:
26
This message has been marked as the solution to the initial question of the thread.
>I've got an odd situation:
>
>I have a process that takes a few seconds and I've been trying to disable all the buttons on the screen once the process starts and then enable them when it finishes. This is just to stop the user pressing on something else which would then be run afterwards.
>
>How I know that the code works
ThisForm.SetAll("Enabled", .F., "cmd")
But it doesn't work every time. It will the first time but not the second! Very odd.
>I've tried refreshing the form, disabling all the buttons explicitly, giving them focus then disabling them. But no joy.
>
>Anyone any suggestions?

Caroline, try
ThisForm.SetAll("Enabled", .F., "cmd")
THISFORM.DRAW()
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform