Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with events
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00222837
Message ID:
00222861
Vues:
25
>>I have two textboxes and when I use the key tab to go from on to the other textbox four events will occur:
>>
>>Textbox1.Valid
>>Textbox1.Lostfocus
>>Textbox2.When
>>Textbox.2.GotFocus
>>
>>But if I do the same with mouse the events will occur like this:
>>
>>Textbox1.Valid
>>Textbox2.When
>>Textbox1.Lostfocus
>>Textbox.2.GotFocus
>>
>>Why the events occur not in the same order when I select a textbox with a mouse click or the tab key.
>>How I can change the order of these events?
>
>I'm aware of this, it's just the way they work when using mouse click...the easiest way to avoid problems is to stick with placing your code in Gotfocus & Lostfocus only, or at least avoid using When...

esp. considering (it seems) When is there for backward compatability only
it is not a stdard event and also in most cases Keypress event etc. are more suited for the job

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

Click here to load this message in the networking platform