How to display a context menu without right click?
Ältere Kommentare anzeigen
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
2 Kommentare
Antworten (1)
David Fuster Signes
am 13 Jan. 2026
0 Stimmen
https://es.mathworks.com/help/matlab/ref/matlab.ui.container.contextmenu.open.html
Kategorien
Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!