Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Page.Activate fires if any object Sets Focus
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00642790
Message ID:
00642806
Vues:
16
>>>It fires page.Activate, then Form's Activate.
>>>
>>>Is it possible to fire only textbox SetFocus() and not fire all other methods, because this causes lots of code executed and finally instead of setting focus on the bad field I'm getting moved to a new record...
>>>
>>>Thanks in advance
>>
>>In order to set focus to a control, the container it lives in must be activated first...
>
>In other words, I should have some form's flag to prevent execution of Page.Activate if I'm explicitly call page.txt1.SetFocus(), right?

I would add that if you are calling setfocus explicitly to do some logic. You should probably be using a custom method instead, which is called in the controls setfocus(), rather than putting the code directly in the setfocus event code.
Eric Kleeman - EDS Consulting Services
MCP Visual FoxPro
MCSD C#.NET
Hua Hin Thailand
Los Angeles California
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform