Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Click on desabled items ( how to prevent after item beco
Message
De
30/09/1999 14:23:29
 
 
À
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:
00271230
Vues:
23
>>>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.


Have you tried a DOEVENTS before you re-enable the button?
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform