Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
SYS(1500, '_MED_PASTE', '_MEDIT')
DEFINE POPUP copypaste SHORTCUT RELATIVE FROM MROW(),MCOL()
DEFINE BAR _med_copy OF copypaste PROMPT "\<Copy" ;
KEY CTRL+C, "Ctrl+C" ;
MESSAGE "Copies the selection onto the Clipboard"
DEFINE BAR _med_paste OF copypaste PROMPT "\<Paste" ;
KEY CTRL+V, "Ctrl+V" ;
MESSAGE "Pastes the contents of the Clipboard"
DEFINE BAR _med_cut OF copypaste PROMPT "Cut (<\X)" ;
KEY CTRL+X, "Ctrl+X" ;
MESSAGE "Removes the selection and places it onto the Clipboard"
This.definecontextmenu()
This.definecontextmenu()
ACTIVATE POPUP context
DEFINE POPUP context SHORTCUT RELATIVE FROM MROW(),MCOL()
DEFINE BAR _med_copy OF context PROMPT "\<Copy" ;
KEY CTRL+C, "Ctrl+C" ;
MESSAGE "Copies the selection onto the Clipboard"
DEFINE BAR _med_paste OF context PROMPT "\<Paste" ;
KEY CTRL+V, "Ctrl+V" ;
MESSAGE "Pastes the contents of the Clipboard"
DEFINE BAR _med_cut OF context PROMPT "Cut (<\x)" ;
KEY CTRL+X, "Ctrl+X" ;
MESSAGE "Removes the selection and places it onto the Clipboard"
Mike said:Take a look at the Help for SYS(1500).
Chris said:That is to programmatically paste, but that's not the problem of stynlyn, I think.
VFP Help said:User-defined menu items and disabled system menu items cannot be activated with SYS(1500).