Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TAB in a pageframe
Message
From
19/10/1998 13:19:11
 
 
To
19/10/1998 13:04:21
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00148185
Message ID:
00148189
Views:
18
>I want a user the select page's in a pageframe in just two ways:
>1. when clicking with the mouse
>2. when using a short-cut key
>That's not the problem, my problem is that I don't want to use a TAB to select a page. When a user is selecting a page (mouse or short-cut) I want the focus to be set on the first control on that page or on the control that in a previous selection of that page was active.
>Who has a simple solution???

You have Page.Activate event to move focus programmatically, e.g. This.ControlX.Setfocus
If you want to move focus to the previously active one, then you should keep this control's index (in some custom property) and then issue:
This.Controls(Thisform.LastActiveControlIndex).Setfocus
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform