Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How 2 Stop a ComboBox DropDown?
Message
De
18/04/2000 13:00:18
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00360450
Message ID:
00360931
Vues:
18
>On the Click Event the button sets focus to a TextBox . This works fine everytime when you actually click on the button, use a shortcut key or hit space when the focus is set BUT if you hit return it shifts focus throught the TextBox and onto the next TextBox along. I have tried stepping through and can't see any code which makes the focus jump again. I thought It may be the keyboard buffer excuting the RETURN on the first TextBox but now I'm not sure (SPACE doesn't have the same effect).
>
>I tried detecting the RETURN on KeyPress and putting NODEFAULT on the Click Event but this hasn't improved the situation. I had actually given up on this problem a few weeks ago but your solution to my latest problem has inspired me again!

Try checking the button's Default property (should be set to .T.). Help for "Click" explains how buttons behave with ENTER. Hope that helps!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform