Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to change focus order on form?
Message
From
04/12/2003 18:08:37
 
 
To
25/11/2003 00:43:57
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00853156
Message ID:
00856112
Views:
18
>>>Change the Tab Order.
>>
>>That doesn't do it. I've already got the tab order the way I want it. The first box in the tab order is not the control the gets focus when the form activates.
>>
>>Unless I'm seeing things...
>
>I think you're seeing one of the VFE's tricks. It's trying to find (at least in V6 and later, but I think it's been that way before) any control where TabOrder=1. Now if you've played with the tab order so that none of your controls has TabOrder=1, it may find such one in some of the containers.
>
>I know I was fighting that one for a while, and spent a happy hour in the debugger until I found that. Don't know if it applies to your case, though.

I'm sure you are right. VFE has code which effects focus. When I create a simple form I got the expected behavior that focus goes to the control with the lowest TabIndex. (See above.)

I'm "cleaning up" some of the routes that my forms take through my modified VFE code.

Peter
Peter Robinson ** Rodes Design ** Virginia
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform