General information
Category:
Forms & Form designer
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only