How to display a context menu without right click?

I am currently doing a GUI in Matlab. This GUI has a lot of things, one of them is some graphics that the user can drag and drop. The objective is to be able to drag a graphic, drop it over other graphic and make an operation. But as there are more than one operation, I want that when a graphic is dropped, a context menu appear with all the possibilities. How can I do this? Because right now my context menu will open only by right clicking. Thank you

Answers (1)

https://es.mathworks.com/help/matlab/ref/matlab.ui.container.contextmenu.open.html

Categories

Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange

Asked:

on 4 Dec 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!