Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing Between Tabs on a Pageframe
Message
From
20/04/1998 07:56:25
 
 
To
16/04/1998 19:34:12
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00086858
Message ID:
00093346
Views:
33
>The way I dealt with this may not be as elegant as you're looking for, but... I created command button controls on the form itself - ie, not on the pageframe. There is one commandbutton control for each page... the style for these command button controls is invisible. The caption is whatever you want the "hotkey" to be... for example, if you want the hotkey to be H, make the caption for that invisible commandbutton be \>
>WITH ThisForm
> .pgfAddress.pagHome.Refresh()
> .pgfAddress.pagHome.SetFocus()
>ENDWITH
>
>It may not be the most elegant solution, but it accomplished what I was trying to accomplish.
>
>HTH
>
>Steph
>
>>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

Thanks, I did not think about using a invisible command button. I did finally get the tabs to work with the alt+1, alt+2, etc... keystrokes. I just use an on key label in the init() and call a common method passing the pageframe tab # to the method. The only trick to it was making sure my pageframe was always named the same thing on every form (which I wanted to do anyway).

John
Previous
Reply
Map
View

Click here to load this message in the networking platform