Context Menus

  • Thread starter Thread starter Jimbo
  • Start date Start date
J

Jimbo

Hi,

I am trying to use a context menu on a picture box. I can create it
programmatically and it it pops up nicely when I right click the mouse on
the picture box. However, I have the following problems.

1. I can only use the left mouse button to select items on the menu - the
right button has no effect.

2. I would like the menu to move and reappear at different locations on the
picture box if I move the mouse and right click in different positions -
this will allow me to change the menu items according the the position in
the picture box. However, if I try this, the context menu just remains in
the first position that it appeared.

Is there something obvious I am doing wrong here?

Can anyone help?

Many thanks,

Jimbo.
 
So, you have to construct your menu in Click event handler. Just check
coordinates and create menu accordingly.

Point 1 will be a bit more tricky. What for you need this? Why left click is
not good when selecting items on menu?

HTH
Alex
 
Back
Top