Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Page activation differences
Message
De
22/10/1998 19:17:55
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00149578
Message ID:
00149643
Vues:
20
>I'm trying to have the focus go to a particular field when the user goes back to the first page of a series of them. How I do this is by putting a thisfield.setfocus command in the activate procedure for the page. It works fine if the user clicks on the page tab to activate it, but if I activate the page by programmatic means - thisform.pageframe1.activepage=1 - it doesn't work. There is no field at all that gets the focus. I would prefer to activate the page programmtically. Any ideas why I'm having this problem?
>
>Diana

Hi Diana,
Which version of VFP? VFP at least required you to create your own thisform.curpage variable because Fox got screwed up when you do the sorts of things your talking about. If you trace the execution of the code and watch the values of the variables like thisform.pageframe1.activepage that will help you find out what's going on. You could also try a more explicit setfocus like thisform.pageframe1.page1.myobj.setfocus()
HTH
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform