Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Focus after tabe change ?
Message
De
29/07/2000 20:26:56
 
 
À
29/07/2000 20:20:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00398428
Message ID:
00398550
Vues:
23
>>>>How to make focus to the first control of each page after tab change ?
>>>>
>>>>it retain the control to tab after tab change now ...
>>>
>>>Each Page has a Controls collection - in the Activate event of the Page, you could simply issue something like:
>>>
>>>=this.Controls(1).SetFocus()
>>>
>>>or spin through the collection and check for the first appropriate control that's enabled.
>>
>>Ed,
>>
>>Does whatever control that's in .Controls[1] have to be the first tab stop? Isn't it just the order the controls are defined in, not necessarily the tab-stop order? Just checking...
>
>I think it's the order the control is added to the Page; you might have to spin through the collection to find the first control by tab order.

OK, thanks. I guess most of the time, the order things are added would be first, but things do change...
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform