Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Command button with function key
Message
 
To
20/11/2004 02:35:04
Hee Lim Wang
Fantasy Software Enterprise
Malaysia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00963169
Message ID:
00963565
Views:
8
This has worked well for us.
In your startup prg put: on key lable F10 keyboard '{F9}'
This Must be global.

Then in keypress:
do case
case nKeyCode = -8 && F10 mapped to F9
case ...
endcase

>Hi ! can any one tell me how to set function key in command button ?
>
>the coding below will works if I set sysmenu off,
>but I need to show my menu on top
>so what should I do ?
>
>
>thisform.keypreview=.t.
>
>thisform.keypress
>do case
>case nkeycode=-9 && F10
> thisform.cmdSave.click
>endcase
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform