Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement