Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why shortcut menu items are always enabled?
Message
 
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01131421
Message ID:
01131654
Views:
13
>>
>
>It works correctly for me in the following code
>DEFINE POPUP medit SHORTCUT RELATIVE FROM MROW(),MCOL()
>DEFINE BAR _med_sp100 OF medit PROMPT "\-" ;
>	PICTRES _med_sp100
>DEFINE BAR _med_cut OF medit PROMPT "Cu\<t" ;
>	KEY CTRL+X, "Ctrl+X" ;
>	PICTRES _med_cut ;
>	MESSAGE "Removes the selection and places it onto the Clipboard"
>DEFINE BAR _med_copy OF medit PROMPT "\<Copy" ;
>	KEY CTRL+C, "Ctrl+C" ;
>	PICTRES _med_copy ;
>	MESSAGE "Copies the selection onto the Clipboard"
>DEFINE BAR _med_paste OF medit PROMPT "\<Paste" ;
>	KEY CTRL+V, "Ctrl+V" ;
>	PICTRES _med_paste ;
>	MESSAGE "Pastes the contents of the Clipboard"
>
>ACTIVATE POPUP medit
>
Sergey,

If I may ask you something. When you are saying the above code works for you, you have Copy and Cut items grayed when no text is selected?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform