Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
How to set pocus to a tabless page
I must rely too much on the framework :}
How do you set focus to page 2 of a pageframe that has Tab = .F. at the click of a command button?
This does not work:
Thisform.pageframe1.page2.SetFocus()
If tabs are prsent it works. I also tried setting focus to the first control in page2 but that doesn't work either. Neither does adding Thisform.Refresh().
TIA,
Alex
BTW, it works if I say:
Thisform.Lockscreen = .T.
Thisform.pageframe1.Tabs = .T.
Thisform.pageframe.page2.Setfocus()
Thisform.pageframe1.Tabs = .F.
Thisform.Lockscreen = .F.
Suivant
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