Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to miss cmdbutton
Message
From
29/10/1997 15:26:28
 
 
To
29/10/1997 14:56:28
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00057253
Message ID:
00057266
Views:
34
>>>How to make a command button unaccessible by "Enter"-key,
>>>and in the same time accessible by mouse-click and "Tab"-key?
>>>
>>>Ed
>
>Hi Ed,
>
>You could try something like trapping the Enter key in the LOSTFOCUS or KEYPRESS of the object preceding the Button and redirecting the focus, or trapping the Enter key in the WHEN of the Button and returning .F., e.g.
>
>in the KEYPRESS:
>
>
>IF nKeyCode = 13
>     THISFORM.MyObject.SETFOCUS
>ENDIF
>
>
>In the LOSTFOCUS or WHEN
>
>
>IF  LASTKEY() = 13
>     .
>     .
>ENDIF
>
>
>Bill

Thanks, it works.
Ed
Previous
Reply
Map
View

Click here to load this message in the networking platform