Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Option Group Click Method Set Focus Problem????
Message
De
05/03/1997 23:32:25
Kris Griffin
Software & Services of Louisiana, Inc.
Shreveport, Louisiane, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Option Group Click Method Set Focus Problem????
Divers
Thread ID:
00023082
Message ID:
00023082
Vues:
73
>>>FORM1
>>>--------------------------------------------------------------
>>>() Opt1 TextBox1
>>>() Opt2 TextBox2
>>>
>>>CommandButton1 CommandButton2
>>>--------------------------------------------------------------
>>>Opt1.click event
>>> thisform.textbox1.setfocus
>>>
>>>Opt2.click event
>>> thisform.textbox2.setfocus
>>>
>>> When I Click (SpaceBar) to select Opt1, focus goes to TextBox1 which is as I expect. Also behaves properly for Click(SpaceBar) to select Opt2.
>>>
>>>PROBLEM: When I press to select either Opt1 or Opt2 the appropriate Opt?.Click fires, but focus is set to CommandButton1.
>>>
>>>Is there a way around this????
>>
>>what do you have in the option group click event?
>>i think the problem is that you're selecting the entire control when you click on it w/ the mouse. because the control didn't have focus, it doesn't process either option click event. once the control has focus, clicking on either one will give the desired result.
>
>
>I do have the focus set to opt1 in optiongroup...
>FYI..TextBox1 and TextBox2 are disabled until I select Opt1 or Opt2
>then I enable and then setfocus to the appropriate textbox in the Click Method of the option selected. I also verified that it does run the controls click event when I click an option because I put a Suspend to trace the code in each Option Click Event.
>
>I hope this helps?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform