Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Container.SetFocus() issue
Message
De
19/10/2013 21:42:04
 
 
À
16/10/2013 08:06:44
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
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:
01585863
Vues:
112
>>>In the Container I added two textboxes. First I add the "second" one and then the "first" one.
>>>I give the TabIndex = 1 to the first textbox, which I added after the second.
>>
>>To keep it generic, could you add code in the container's SetFocus that iterates through the contained controls and
>>sets the focus to the one with TabIndex =1?
>
>Such a control may not exist, or may be disabled, invisible, have tabstop=.f., coordinates off viewport, return a .f. from .when()...
>
>I think I tried to do that once, and had to account for all those possibilities, and take the reference to any available candidate with the lowest taborder, or none (had such cases too).

Agreed. My intent was to suggest an approach to a workaround, not a comprehensive solution to the problem.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform