photonbuddy Posted April 18, 2006 Share Posted April 18, 2006 Hi All, I've written a little app, and now I want to add a context menu when the user clicks the right mouse button. The gui is created thus: GUICreate($title,109,25,$xpos,$ypos,$WS_popup+$WS_DLGframe,$wintop+$WS_EX_TOOLWINDOW) and I draw some graphics in the window, show it, and then go into the while/wend guigetmsg() loop. Once in here, if the returned event is $GUI_EVENT_SECONDARYDOWN, I then want to go to a function that creates the context menu, adds a number of items, and then waits for the user to select an option, going off and doing something with the selection, closing the context menu, and returning to the main loop again. What's the best way to handle this? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now