Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Container.SetFocus() issue
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Container.SetFocus() issue
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01585520
Message ID:
01585520
Vues:
92
I find it strange that when I set focus to a container object which has user controls on it, the focus goes to any of the controls on the container, but not the one that is set TabStop = 1.

So when I call THISFORM.cntMyContainer.SetFocus(), it sets the focus to some control, like the third or fourth in the tab order on that container. When I TAB into the container, it does move first to the first control etc, so there is a difference between setting the focus with TAB or by calling SetFocus().

It is quite annoying, because the behavior is nothing what the user would expect. I was wondering if somebody has a workaround for this, other than overwriting the SetFocus() of the container or create a custom method that does the focus thing, because that would be quite an overhead in the application.
Christian Isberner
Software Consultant
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform