Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Default property for Command Buttons
Message
 
 
À
23/06/1998 07:28:50
Daniel Cohen
Spawar Syscen Chesapeake
Chesapeake, Virginie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00110870
Message ID:
00110872
Vues:
17
>Command buttons have a property called Default. Of course, setting this property to .T. tells the system to execute the click event of a command button when Enter is depressed by the user. Right now I am building a simple form, with no pageframes, just data entry fields and command buttons. For some reason the Default property for all my command buttons are set to .T. at run time. So if the user were to hit the Enter to key to get from field to field, instead of the tab key, the code behind my first command button is executed. I need some help to solve this problem. I have tried several things, but even if I set the Default property to .F. at run time, just moving the mouse sets it back to .T. Thanks for any input.

Are you saying that the cmdButton.Click() fires if a user presses the *Enter* key in a text box???? The click() method will always fire in a command button if the *Enter* key is pressed when that button has focus. This is default behaviour that can only be aborted if that key code is tested for with code.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform