Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Blocking TABing to a page tab
Message
From
13/05/1998 15:44:09
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00099118
Message ID:
00099179
Views:
14
>>>>When I am TABing through the controls on a page of a PageFrame, eventually the focus goes back to the page tab at the top. I understand that this allows the user to move to other page tabs from there with the arrow keys. In my case, I have created other hot-keys to move from page to page, and I don't want the page tab to get focus.
>>>>
>>>>I'm looking for something similar to the TabStop property that most controls have so I can set it to .f. for each tab on the pages of my PageFrame. Page doesn't seem to have such a property. PageFrame does, but it doesn't do what I'm trying to accomplish.
>>>>
>>>>Bob
>>>
>>>In the Page.GotFocus(), you could add code to set focus to the first applicable object on that page.
>>
>>I've got that one covered (actually its in the pages activate event) and that solved most of my problem. My page is a search form and has only 3 or 4 TextBoxes and a grid. The grid changes tab order and repositions the highlighted row based on entry from the TextBoxes. My users work in a keyboard environment (no mouse) and if doing several lookups, will move from TextBox to TextBox using the TAB key and cycling around (finding Shift-TAB is too much of a bother). When the focus gets to the page tab, to them it seems to have dissappeared and requires hitting TAB one more time. This is the behavior that I want to get rid of.
>
>Have you tried putting the code into the GotFocus event as Mark suggested?
>
>Joe

Neither PageFrame, nor Page have a GotFocus() method.
Bob
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform