Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Phantom Phocus - SetFocus()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00931166
Message ID:
00931173
Vues:
30
Remove the call to the Page.Click.


>I tried the below as you stated, but it didn't work. The outline line is still surrounding the tab's name and the setfocus is off the first textbox.
>
>thisform.PageFrame.ActivePage = 2
>thisform.Pageframe.Page2.TextBox.SetFocus()
>
>
>This is my actual code which follows. It is in the command button which takes the user to the next page.
>
>
>WITH ThisForm
>	SELECT (.cTable)	&& Select the appropriate table for the Page of
>				&& the PageFrame the user is on.
>	IF .cmdTransDist.Caption = "\<Transaction"
>		.pgfAPTransaction.Page1.Click()
>		.pgfAPTransaction.ActivePage = 1
>		.pgfAPTransaction.Page1.SetFocus()
>	ELSE
>		.pgfAPTransaction.Page2.Click()
>		.pgfAPTransaction.ActivePage = 2
>		.pgfAPTransaction.Page2.SetFocus()
>	ENDIF
>ENDWITH
>
Fred
Microsoft Visual FoxPro MVP

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

Click here to load this message in the networking platform