Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check boxes...
Message
From
14/12/2001 04:27:11
 
 
To
14/12/2001 03:29:32
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Miscellaneous
Thread ID:
00594287
Message ID:
00594296
Views:
24
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform