>All
>
>After making a choice in an option group, I would like to place focus on an OK/Close command container. Despite using my framework's (Codemine) SetNextFocus() method and the native VFP thisform.control.SetFocus() method, focus remains squarely on the option button selected in the option group.
>
>In 2.6 I could pretty much set focus where using _CUROBJ in a radio button control.
>
>In VFP, it seems that focus can not be programatically set away from an option group unless you change its enabled or readonly status followed by a refresh.
>
>Could anyone clarify the position?
It would appear it is something in the framework that is keeping the OptionGroup from losing focus. Using VFP base controls, I was able to put code in the Valid event of an OptionGroup to change focus to another control on the form.
Valid event
THISFORM.Command1.SetFocus()
Is there code within your control (or fraemwork) that is resetting the focus? Add a suspend to the Valid event of the OptionGroup and setp through your code.
Godd luck!
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao