Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tab order for each page in a pageframe
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00393380
Message ID:
00393405
Views:
19
>I have a form with 3 pages and different information on each page. How can I set the tab to stop at each page. instead of using the mouse to changes pages?

I put this in the .Keypress of the last control on the page:
LPARAMETERS nKeyCode, nShiftAltCtrl
IF nKeyCode = 13 OR nKeyCode = 9 OR nKeyCode = 24
* [Enter] & [Tab] & [down arrow]
	THISFORM.Pageframe1.Page2.Setfocus()
ENDIF
As you can see, I have set focus to the next page, not a control on the page, because it somehow worked better. I put this in the .Keypress of the first control of the next page:
LPARAMETERS nKeyCode, nShiftAltCtrl
IF nKeyCode = 15 OR nKeyCode = 5
* [Shift-Tab] & [up arrow]
	KEYBOARD "{LEFTARROW}"
ENDIF
I don't remember the details, but I did a bit of fiddling with this in order to get something that looked good. I certainly couldn't explain exactly why this specific code worked better than other things I tried. I don't know what the effect of Jess and Nigel's suggestion will be if .LostFocus is fired when the user selects a control outside the pageframe. They may have verified that it works well.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform