Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On Key Label F1
Message
From
16/01/2001 10:09:12
 
 
To
16/01/2001 08:11:51
Leo Joseph
Pan Arab Research Center, Bahrain
Manama, Bahrain
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00464115
Message ID:
00464180
Views:
19
>>>Please tell me what is the best way to do it.. Should I have the ON KEY LABEL in the 'When' method and call the 'Right Click' method from there? Any other neat way to do this?
>>
>>I'd consider puting it on a Menu with F1 as a short cut key. What type of help are you using? Do you use HelpContextIDs?
>
>I do not use HelpContextIDs.
>When the focus is on that field., on pressing F1, it should show the list of codes and the description and be able to select from it.
>
>After moving to the next field, the F1 key should be deactivated.

Hello, Leo.

Using [on key label] in VFP is not a very good idea most of the time, because in a very modeless environment it's hardly to predict where the user is located when she presses F1. You can use the KeyPress event instead, that's absolutely local to the control, unless you want to handle it at the form level (see the help on KeyPress for detailed information).

Anyway, I wouldn't recommend using F1, but some other key. F1 is the standard key in Windows for calling an application help (as in VFP). Maybe your app doesn't have one now, but it can be added some day.

I hope this helps,
Previous
Reply
Map
View

Click here to load this message in the networking platform