Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shortcut menu on EditBox
Message
From
25/01/2002 05:15:16
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00610274
Message ID:
00610341
Views:
47
This message has been marked as the solution to the initial question of the thread.
>Hi everyone,
>
>I'd like to create a shortcut menu (on Right Click) for the editbox, which has to include all standard Edit menu commands (or some essential): Copy, Cut, Paste, Print. They should behave correctly, e.g. is something is in clipboard, then paste is active and vs. Could you please point me to the right direction?
>
>Thanks a lot in advance.
*Rightclick
activate popup ccp at mrow(),mcol()

*form.load
DEFINE POPUP ccp SHORTCUT RELATIVE
DEFINE BAR _med_cut OF ccp PROMPT "Cu\<t" ;
 KEY CTRL+X, "Ctrl+X" ;
 MESSAGE "Removes the selection and places it onto the Clipboard"
DEFINE BAR _med_copy OF ccp PROMPT "\<Copy" ;
 KEY CTRL+C, "Ctrl+C" ;
 MESSAGE "Copies the selection onto the Clipboard"
DEFINE BAR _med_paste OF ccp PROMPT "\<Paste" ;
 KEY CTRL+V, "Ctrl+V" ;
 MESSAGE "Pastes the contents of the Clipboard"
DEFINE BAR _med_slcta OF ccp PROMPT "Se\<lect All" ;
 KEY CTRL+A, "Ctrl+A" ;
 MESSAGE "Selects all text or items in the current window"
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform