I posted a similar enquiry ages ago...
What I would like is a Right Click - Drop down list with various commands... This is like the Drop down lists you get in Excel or Outlook which have a series of options... (Rt Click a cell and down drops a menu)
I got an excellent answer from Ramani
And that was perfect for delete etc... but now I want to have one of the entries do a "copy to clipboard" so I can "paste" it elsewhere.
The right click activated pull down menu with the respective commands would do the job... but how do I do a copy instruction or a paste instruction for that matter.
Is this an API call ?
Thanks
John Fox
What I would like is a Right Click - Drop down list with various commands... This is like the Drop down lists you get in Excel or Outlook which have a series of options... (Rt Click a cell and down drops a menu)
I got an excellent answer from Ramani
Code:
From Ramani...
In which ever control you want you can add something like this, let us say, in the right click event..
**************************************************
LOCAL lEsc
lESC = SET("ESCAPE")
DEFINE POPUP myPop SHORTCUT RELATIVE FROM MROW(),MCOL()
DEFINE BAR 1 OF myPop PROMPT "Delete"
DEFINE BAR 2 OF myPop PROMPT "UnDelete"
ON SELECTION POPUP myPop DEACTIVATE POPUP
ACTIVATE POPUP myPop
DO CASE
CASE BAR() = 1
DELETE NEXT 1
CASE BAR() = 2
RECALL NEXT 1
ENDCASE
**
RELEASE POPUP myop
SET ESCAPE &lESC
**************************************************
And that was perfect for delete etc... but now I want to have one of the entries do a "copy to clipboard" so I can "paste" it elsewhere.
The right click activated pull down menu with the respective commands would do the job... but how do I do a copy instruction or a paste instruction for that matter.
Is this an API call ?
Thanks
John Fox