Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where to setfocus()?
Message
From
18/08/2004 02:00:31
 
 
To
17/08/2004 10:10:16
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00931180
Message ID:
00933990
Views:
28
>I've tried this in form's .gotfocus():
>
>this.optiongroup1.Buttons[this.optiongroup1.value].setfocus
>
>and it worked, but in general case this is still bad, because the form may have lost focus when you had any other control having focus, so restoring focus to your form would always return focus to the optiongroup. Ideally, if optiongroup had a .gotfocus event, that would be the best place to put the above command, but it doesn't.
>
>So, the trick is to put the optiongroup into a container, which does have a .gotfocus, and the command to set the focus to the correct optionbutton goes there. Tried, works.

Thanks Dragan, that does work. And how are you going anyway? Wife and daughters all OK?
Regards
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform