Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Click on desabled items ( how to prevent after item beco
Message
De
28/09/1999 01:04:19
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:
00269794
Vues:
27
>>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
You are right, it is exactly, what I mean.
Yes I did it, but it did not prevent mouse click , only keyboards,
I also added inkey('MH') -much better,
but waht to do with the rest of buttons, which are enabled and ready to get
working, when other procces is going under disabled button.
It is important problem in VFP6+SP3 in multithread mode.
MVP-2006-2011, PHD in Math and Physics ,
host of www.foxclub.ru,
VFP lector at Interface and Microinform companies
Head science researcher of VNIIA Rosatom.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform