Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OptionGroups And SetFocus Question
Message
 
 
À
14/09/2000 06:13:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00416267
Message ID:
00416272
Vues:
26
>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.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform