Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shortcut keys in menus
Message
From
17/11/2005 17:00:25
 
 
To
17/11/2005 08:59:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Miscellaneous
Thread ID:
01068891
Message ID:
01069975
Views:
16
Bernard --

Since none of my keyboard shortcuts are working, I tried your #2 first. I put "clear macros" immediately before DO MyMenu.MPR. No changee; function keys still have no effect.

Any other suggestions?

>>I have a menu (using MODIFY MENU) to replace the system menu in my application. This menu, through some forgotten magic, becomes part of my top-level form.
>>
>>I have two questions; I assume the answers are related:
>>1) Cut/Copy/Paste (Ctrl-XCV) don't work, presumably because they do not appear in my menu. How do I add them?
>>2) I'd put some items in that have shortcuts (F2, F3, etc), which are listed when I dropdown the menu. However, pressing the indicated function keys do nothing. What am I missing?
>>
>>Thanks in advance,
>
>1. To add Cut/copy/paste the easiest is to create a new mwnu and before doing anything else select Menu/QuickMenu. Then open the EDIT section and use the definitions there in your menu.
>
>eg for Copy:
>
>Prompt = \>Result = Bar #
>Menuitem = _med_copy
>
>Click the small button under Options:
>Propmt Options Dialog Box:
>
>Key Label = CTRL+C
>Key Text = CTRL+C
>Message = "Copies the selection onto the Clipboard"
>Picture
>Select Resource radio button
>value of text box = _med_copy
>
>This will give you Copy. Similar for Cut/Paste.
>
>2. The reason your F2/F3 etc keys don't work from the menu is because you have Macros associated with those keys. Macros take precedence over shortcut keys.
>
>Just before you DO MyMenu.MPR place this code:
>
>CLEAR MACROS
>
>Your Menu shortcut keys will now work both in the IDE and the EXE.
>
>HTH.
>
>BErnard
Jim Nelson
Newbury Park, CA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform