How to display a context menu without right click?

22 views (last 30 days)
Mario
Mario on 4 Dec 2013
Answered: David Fuster Signes on 13 Jan 2026 at 11:10
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)

David Fuster Signes
David Fuster Signes on 13 Jan 2026 at 11:10
https://es.mathworks.com/help/matlab/ref/matlab.ui.container.contextmenu.open.html

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!