Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing Between Tabs on a Pageframe
Message
From
24/03/1998 21:12:26
 
 
To
24/03/1998 19:45:01
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00086858
Message ID:
00086879
Views:
34
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform