Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tab behavior in PageFrame
Message
From
08/10/2002 08:44:36
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00708688
Message ID:
00708704
Views:
9
This message has been marked as the solution to the initial question of the thread.
Put a textbox behind the last one in your pageframe and put this code in it's GotFocus () event:
WITH This.Parent.Parent
   IF .ActivePage < .PageCount
      .ActivePage = .ActivePage + 1
   ENDIF
ENDWITH
In the Activate () event of the page, put this code:
This.MyFirstTextBox.SetFocus ()
The reason for the hidden textbox is that you need to know if the user go back or ahead in the tab order (he hit Shift+TAB, TAB or clicked on another control in the pageframe).

HTH

>I have a PageFrame with 3 pages. When adding a new record, I am able to Tab through all the items on the first Page (this is the behavior I want), but when the last item on that Page is tabed through, I would like the 2nd Page brought up with the cursor in the first field on the 2nd page (so that the user doesn't have to actually click on the 2nd Page).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform