Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting Focus
Message
De
30/07/2001 10:42:10
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Setting Focus
Divers
Thread ID:
00537197
Message ID:
00537197
Vues:
48
It seems that whenever I issue something like...

ThisPageFrame.ActivePage = 2

...the focus goes to the object with a TabIndex of 2 even if there is an object with a TabIndex of 1. It skips the first object. Even if I issue SetFocus. This bothers me because by default if I click on a page the first object does get the focus, but if I do it through code, the second object does. Does this default behaviour bother anyone else? Or does it only happen to me? Any insights? The real question: What's the best way to make sure that the object I want always gets the focus when I set the ActivePage through code? Thanks!

Regards, Renoir

ps. I'm also bothered by the native behaviour that forces me to use NoDefault in the KeyPress of the last object in order to return focus to the first object. I would think that the second way would be the default.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform