LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Pop up menu on right clicking an image?

Hello,

 

I am new to LabWindows/CVI. 

 

Requirement: "To get a pop-up menu on right clicking on image"

 

Right now, I display my images in window numbers (0 - 15). Is it possible to be able to get a pop-up menu on right clicking an image window. If yes, how? If not, could you please suggest other methods to achieve this task? Should I display the image in a separate parent panel for example? How could I do this?

 

Any help would be great.

 

Cheers

0 Kudos
Message 1 of 3
(3,027 Views)

Hello Hamonium,

 

you could do this for example by using a picture button and then use RunPopupMenu(...) in the control's callback for the event EVENT_RIGHT_CLICK. You might also want to have a look at this thread

 

Wolfgang

0 Kudos
Message 2 of 3
(3,022 Views)

I would use the code generator for right click event. then fill it up with whatever code you want under right click case. You can access these when you double click your UIR file, then on the top of the page click Code\Preferences\Default... then choose desired events for picture then go to Code\Generate\all callbacks and skip through the ones you don't want to be replaced.

0 Kudos
Message 3 of 3
(3,007 Views)