>>I have EDIT pad on the top application menu with items Copy, Cut, Paste. The Copy, Cut are enabled only when a certain text is selected. Which is how it is suppose to work. The Paste is enabled only when clipboard has something copied/cut.
>>
>>But when I bring up a shortcut menu (with right mouse click) that has the same items (Copy,Paste,Cut), all items are always enabled. That is, even if no text is selected, Cut and Copy are enabled. How can I make the shortcut menu work as the top application menu?
>>
>
>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
>
I copied your code without changing into my RightMouse method of an editbox. But it still does not work. What I mean by "does not work" is that when I bring up the popup menu the Copy and Cut are enabled, even though no text is selected.
Thank you for your message.
"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