Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Space Bar Operation
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00424783
Message ID:
00424790
Vues:
6
>Please excuse this simple question.. Can't find it in Bazian Book.
>How do you force the focus of the space bar to an item on a form?
>
>I have a form with several buttons, the last one used has the focus. When I press the space bar, the one having focus triggers. I want the space bar to always do the one assigned button.
>

The space bar doesn't have focus per se - you'd either have to use SetFocus to direct VFP's focus to the default button you want to use, or capture the character received in the KeyPress() event and fire the desired button. The only keys that trigger specific actions are Enter (the Default action) and Escape (the Cancel action)
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform