Hi,
Use Shortcut instead of popup and call it from RIGHTCLICK() event of the grid's textbox. For Example
DEFINE POPUP mypopup SHORTCUT RELATIVE FROM MROW(),MCOL()
DEFINE BAR 1 OF myPopup PROMPT "One"
DEFINE BAR 2 OF myPopup PROMPT "Two"
ON SELECTION POPUP myPopup DO myprg WITH BAR()
ACTIVATE POPUP mypopup
RELEASE POPUP myPopup
Hope it helps
Bye
Jayesh
- Jayesh