>hi guys
>
>can anyone please tell me how to create a popup menu when you right click on something....
>
>tia - john
* Add a method to your form definining the popup "frmDefinePopUp"
define popup popFile margin relative shadow color scheme 4
define bar 1 of popFile prompt 'Excel'
define bar 2 of popFile prompt 'Word'
define bar 3 of popFile prompt 'Printer'
define bar 4 of popFile prompt 'Close'
on selection bar 1 of popFile do OpenExcel
on selection bar 2 of popFile do OpenWord
on selection bar 3 of popFile GetPrinter()
on selection bar 4 of popFile cancel
* ADd this to the forms OnMouseDOwn
LPARAMETERS nButton, nShift, nXCoord, nYCoord
nRow=nXCoord * (some pel conversion factor)
nCol=nYCoord * (Some pel conversion factor)
ACTIVATE popup popFile at nRow,nCol
DEACTIVATE MENU popFile
Imagination is more important than knowledge