Here is some code for showing a 'right click' menu using the blueGUI
RIGHTCLICK:
IF MOUSECLICK()=1 AND GADGET VISIBLE(5)
HIDE GADGET 5
ENDIF
IF MOUSECLICK()=2
POSITION GADGET 5,MOUSEX()+120,MOUSEY()-30
SHOW GADGET 5
ENDIF
RETURN
That code displays the menu (that wants to go in the main loop)
and then you set it up in the section before the loop somthing like this
``````RIGHT CLICK
CREATE GADGET WINDOW 5,5,"RIGHT CLICK",1
RESIZE GADGET 5,60,100
CREATE GADGET BUTTON 6,"CUT"
RESIZE GADGET 6,60,20
POSITION GADGET 6,5,5
CREATE GADGET BUTTON 7,"COPY"
RESIZE GADGET 7,60,20
POSITION GADGET 7,5,35
CREATE GADGET BUTTON 8,"PASTE"
RESIZE GADGET 8,60,20
POSITION GADGET 8,5,65
The code needs altering so it creates it at the point of the cursor so if any1 fixes the prob can you post it here (if you fix it before me)
RichS
Just to add to the confusion.
Look at my avatar