Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check boxes...
Message
 
 
À
14/12/2001 03:29:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Divers
Thread ID:
00594287
Message ID:
00594296
Vues:
25
Hi!

In the KeyPress event for checkbox put following code:
if nKeyValue=13 && Enter key
  nodefault && Here is a clue!
  KEYBOARD "{TAB}" && force focus to move to next control on Enter key
endif
HTH.

>Just a quickie...
>
>I've just been shown a very unpleasant bit of behaviour by a check box. If it has the focus and the user presses 'return' the value changes....eh????
>
>My colleague catches character 13 and flips the value to make sure it doesn't change. That can't be right...surely! Please tell there is a way of stopping this...I'm afraid my colleagues have been using VFP for too long and have got used to this sort of thing.
>
>Thanks in advance..
>
>Pablo
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform