>Hey, Everybody!
>
>Another question: How can i add the Cut, Copy and Paste functions to the menu I created on a textbox right click event??
>
>Thanks!
Hi Alonso,
Put
ON KEY LABEL "Ctrl+A" SYS(1500, '_MED_SLCTA', '_MEDIT') && Select All
ON KEY LABEL "Ctrl+C" SYS(1500, '_MED_COPY', '_MEDIT')
ON KEY LABEL "Ctrl+X" SYS(1500, '_MED_CUT', '_MEDIT')
ON KEY LABEL "Ctrl+V" SYS(1500, '_MED_PASTE', '_MEDIT')
in your start program (or Form.Init() )
This provides full Copy/Paste functionality even if you have no menu available.
Then you can issue KEYBOARD '{Ctrl+C}', etc. from your shortcut menu.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison