Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cut, Copy and Paste in the Right Click Menu
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00502856
Message ID:
00502864
Vues:
27
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform