Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Blocking TABing to a page tab
Message
 
To
15/05/1998 16:47:40
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00099118
Message ID:
00099903
Views:
22
If LastKey() doesn't work, can you try the KeyPress() event on your form. You'd have to check the ActiveControl value, but it should work. KeyPress() will differentiate between Shift-Tab and Tab.

HTH
Barbara

>>Bob, if your users are ALWAYS tabbing in the same loop, put a 'nodefault' in the last control's LostFocus() event, and add 'FirstControl.setfocus()'. Haven't tried it.....
>>
>>HTH
>>Barbara
>
>Works pretty good and will probably suit my users fine. There are still a couple of anomalies though. The 1-2-3-4-1-2-3-4-1-2- ... etc. sequence works great skipping the page tab between TextBox4 and TextBox1, however we cannot Shift-TAB back to TextBox3 from TextBox4. A little lastKey() code might fix this though. The other problem is Shift-TAB on TextBox1 which still goes to the page tab, but again some lastKey() code might fix this too. I'm saying "might" instead of "will" because I just checked lastKey() help and it says "LASTKEY( ) is updated when you move between controls", and this updating might be too late to help.
>
>Great approach Barbara. Thanks.
>Bob
>
>
>>>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
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform