Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Click on desabled items ( how to prevent after item beco
Message
 
À
21/09/1999 02:46:38
Vladimir Zhuravlev
Institute of the Physics of Earth,Russia
Moscow Region, Russie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00266970
Message ID:
00266996
Vues:
19
>My memory propably became weak, I know for sure I have known the answer on the problem, but have forget it.
>Here is the problem
>We have form and some button with code
>We run some method on this button or other button
>The proccess takes some time and we meke the button
>being desabled on the time of the proccess
>and will make it enabled after proccess was over
>If to click desabled button , the code will work after the
>button will become enabled
>typeahead command fix problems with keyboard keeping stack.
>What command, set or function will prevent keeping clicks of the mouse
>So, roughly saying , I don't like the user will click on desabled item and the code of the click event under this button will work, when button will be enabled.
>Thanks in advance
>Vladimir Zhuravlev

Assuming you are using the click event of the button, something like:

This.Enabled = .F.
Code segment here...
....
End of code segment...
This.Enabled = .T.

I'm not sure if I understand the question entirely, but it sounds like you also want to clear the keyboard buffer as well? If so, try:

CLEAR TYPEAHEAD

HTH, Bill
Oct 31 = Dec 25
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform