Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Command Button Click Event
Message
 
 
To
29/07/1999 13:13:17
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00247727
Message ID:
00247796
Views:
35
>Yes...
>
>While one button has the FOCUS waiting for action, as soon as I hit a letter, the control goes to a second button with a hot key being the same letter.
>
>This is causing that the system activates the second button; consequently, triggering an unwanted action.
>
>Is there any way to avoid this ?

Generally, this is standard behaviour. But, you can put code in the keypress of the Buttons so that only alt key combinations work. One of the parameters passed to the method by VFP is nShiftAltCtrl. If the Alt key is used, this number will be 4. So if this number is not 4, you could have:
if nShiftAltCtrl <> 4
nodefault
return 0
endif
DoDefault()
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform