Jump to content

Context Menu's - Help Needed.


Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...