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
Previous
Next
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