Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing Between Tabs on a Pageframe
Message
De
24/03/1998 21:12:26
 
 
À
24/03/1998 19:45:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00086858
Message ID:
00086879
Vues:
38
>I have a form with a 5 tab pageframe and I want to use a hot key combo like alt+1, alt+2, alt+3, etc... to move between tabs. When I set on key to a method on the form that will do the switching, it says it can't call a method on the form.
>
>Anybody have a way around this?
>
>Thanks

You can write an ON KEY line for each tab as follows:
ON KEY LABEL ALT+1 _SCREEN.activeform.pageframe.activepage = 1
and if you have many tabs you can do something like the following:
FOR x = 1 TO 5
	lcX = LTRIM(STR(x))
	cExpr = "ON KEY LABEL ALT+" ;
		+ lcX + " _SCREEN.activeform.pageframe1.activepage=" + lcX
	&cExpr
ENDFOR
You can also use the dash and the Smaller-Than character on the page.caption (like in menu items) and it will be underlined the same way
Ernest
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform