Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Generic Set Focus
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00130031
Message ID:
00130035
Vues:
46
Hello Rixon,

Create three new property on the form say
1. csetfocusobj1 = 'Thisform.pgf.page1.text1'
2. csetfocusobj2 = 'Thisform.pgf.page2.text1'
3. csetfocusobj3 = 'Thisform.pgf.page3.text1'

*--
Click of Add button
*--
LOCAL lnpage
lnpage = Thisform.pgf.activepage
DO CASE
CASE lnpage = 1
&csetfocusobj1..SetFocus()
CASE lnpage = 2
&csetfocusobj2..SetFocus()
CASE lnpage = 3
&csetfocusobj3..SetFocus()
ENDCASE

Bye
Jayesh



>I have a form with a pageframe with three pages. There is an edit button at the bottom of the form outside the pageframe. When the user clicks the edit button the focus should be set on the first object of the page that is active. How do I accomplish this?
>
>Thanks in advance.
- Jayesh
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform