Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tab behavior in PageFrame
Message
From
08/10/2002 08:27:36
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00708688
Message ID:
00708697
Views:
8
Hi!

Try following:

In the LostFocus event of the last control of page put following code:
if LastKey()=9 && Tab key
  this.parent.parent.ActivePage = 2
  this.parent.parent.Page2.MyTextBoxonPage2ThatShouldGetFocus.SetFocus() && this command is not needed if it gets focus by default
endif
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).
>
>Can someone tell me the best way to do this.
>
>Thanks,
>Mel Cummings
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform