Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ignore mouse click
Message
De
26/09/1997 18:39:56
 
 
À
26/09/1997 14:04:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00051797
Message ID:
00051876
Vues:
38
>>>As oppose to CLEAR TYPEAHEAD, what can we do in order to avoid a mouse click when a process in under way?
>>>
>>>I have a form which generates a process from a click on an icon. I don't want to fire the process again if the user clicks on it while the first process is not finished.
>>>
>>>I can use a flag to avoid the second process to fire but I was wondering if there would have been a way to avoid the click.
>>
>>You could just disable the control (commandbutton?) which initiate the process.
>
>I tried that and it doesn't change that much because while Visual FoxPro processes a method, the click is recorded and Visual FoxPro will only fire the click when the application interface becomes available. So, when the method is finished, the click will fire and will start another process.
>
>What I did is something like this in the Click().
>
>This.Enabled=.F.
>ThisForm.MyProcess()
>This.Enabled=.T.
>
>So, what happen is until those 3 lines are not finished, the application interface is not available. So, the This.Enabled=.T. will fire before the click of the mouse is processed by Visual FoxPro.
>
>The problem remains. Any more suggestions?

DOEVENT before This.Enabled = .T. ??

Don't forget about AUTOYIELD.

Vlad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform