Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The WHEN event.... a cheater?
Message
 
À
30/03/2001 16:37:14
David Brunelle
Université de Sherbrooke
Sherbrooke, Québec, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00490451
Message ID:
00490700
Vues:
7
>>>Ok. It's not really a question.. it's rather something I found out while debugging... When you look at the MSDN library, it tells you that the WHEN event happend as soon as you try to get the focus, and then the gotfocus event happen.. But according to what I just experienced, THIS IS WRONG, at least for the buttons I was using. It seem that the gotfocus event happen first, then the click, AND THEN the When event..
>>>
>>
>>Works as advertised for me. But the When() is firing again after the Click.
>
>Well, that was my problem.. I didn't want anything to happen after the click...
>Maybe it actually happen before also, but the fact that it happend adter is bad.. relly bad for me, so I used the gotfocus instead, which hapen right before the click anyway

Then when event is really intended to determine if the user should have access to the control. As you have found, the gotfocus is really where you want that stuff to happen.
Cy Welch
Senior Programmer/Analyst
MetSYS Inc
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform