Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Right-click event for mouse
Message
From
06/01/1999 13:52:29
 
 
To
06/01/1999 08:56:29
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00173097
Message ID:
00173257
Views:
33
>I am trying to create a cut/copy/paste popup as a right-click event for a text field on a form. Could anyone help or point me in the right direction or suggest a Knowledge Base article? Thanks for any help you might give.

Put something like this in the rightclick event of your textbox:

DEFINE POPUP SHORTCUT SHORTCUT FROM MROW(), MCOL()
DEFINE BAR 1 OF SHORTCUT PROMPT 'Cut'
DEFINE BAR 2 OF SHORTCUT PROMPT 'Copy'
DEFINE BAR 3 OF SHORTCUT PROMPT 'Paste'
DEFINE BAR 4 OF SHORTCUT PROMPT 'Clear'
ON SELECTION BAR 1 OF SHORTCUT SYS(1500, '_MED_CUT', '_MEDIT')
ON SELECTION BAR 2 OF SHORTCUT SYS(1500, '_MED_COPY', '_MEDIT')
ON SELECTION BAR 3 OF SHORTCUT SYS(1500, '_MED_PASTE', '_MEDIT')
ON SELECTION BAR 4 OF SHORTCUT SYS(1500, '_MED_CLEAR', '_MEDIT')
ACTIVATE POPUP SHORTCUT
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform