Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Will any keys check and uncheck checkboxes?
Message
 
 
To
03/06/1999 09:16:10
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00210499
Message ID:
00225915
Views:
31
>Mark:
>How do I prevent the key from toggling the checkbox and make it work like a TAB? I've tried putting this code in keypress event:
>
>LPARAMETERS nKeyCode, nShiftAltCtrl
>if nKeyCode = 13
> nKeyCode = 9
>endif
>
>dodefault(nKeyCode, nShiftAltCtrl )
>
>I've also tried
>if nKeyCode = 13
> KEYBOARD '{TAB}'
>endif
>
>dodefault(nKeyCode, nShiftAltCtrl )
>
>Any Ideas?
>Mike

I would RETURN after the KEYBOARD command. The DoDefault() over-rides yourkeystroke intercept.
if nKeyCode = 13
   keyboard '{TAB}'
   nodefault
   return
endif

dodefault(nKeyCode, nShiftAltCtrl)
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform