>Good Morning,
>
>I have a shortcut menu (edtshort.mnx) which has four prompts: cut, copy paste and clear. For each, the result is "Bar #". For the commands, I am using _med_cut, _med_copy, _med_paste and _med_clear from the main VFP menu system.
>
>In the options, I have the key label and key text set to the obvious Ctrl+C, Ctrl+V, etc.
>
>In the Right Click event of my base classes, I inserted this code:
>
>
DO edtshort.mpr WITH THIS
>
>While the right click and select works to cut, copy, etc., using the Ctrl+C key combination does not. How can I allow the user to use the keyboard for this? I thought that defining the key combination in the menu would handle it, but obviously I was incorrect :)
>
>TIA
I have this defined in my main menu and it enables the key combinations.
set sysmenu to _MSM_SYSTM
DEFINE POPUP _medit MARGIN RELATIVE SHADOW COLOR SCHEME 4
DEFINE BAR _med_cut OF _medit PROMPT "Cut" KEY CTRL+X, "Ctrl+X" ;
MESSAGE "Removes the selection and places it onto the Clipboard"
DEFINE BAR _med_copy OF _medit PROMPT "Copy" KEY CTRL+C, "Ctrl+C" ;
MESSAGE "Copies the selection onto the Clipboard"
DEFINE BAR _med_paste OF _medit PROMPT "Paste" KEY CTRL+V, "Ctrl+V" ;
MESSAGE "Pastes the contents of the Clipboard"
HTH.
Steve