Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting Focus
Message
From
30/07/2001 10:42:10
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Setting Focus
Miscellaneous
Thread ID:
00537197
Message ID:
00537197
Views:
49
It seems that whenever I issue something like...

ThisPageFrame.ActivePage = 2

...the focus goes to the object with a TabIndex of 2 even if there is an object with a TabIndex of 1. It skips the first object. Even if I issue SetFocus. This bothers me because by default if I click on a page the first object does get the focus, but if I do it through code, the second object does. Does this default behaviour bother anyone else? Or does it only happen to me? Any insights? The real question: What's the best way to make sure that the object I want always gets the focus when I set the ActivePage through code? Thanks!

Regards, Renoir

ps. I'm also bothered by the native behaviour that forces me to use NoDefault in the KeyPress of the last object in order to return focus to the first object. I would think that the second way would be the default.
Next
Reply
Map
View

Click here to load this message in the networking platform