How to display a context menu without right click?
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
David Fuster Signes
le 13 Jan 2026
0 votes
https://es.mathworks.com/help/matlab/ref/matlab.ui.container.contextmenu.open.html
Catégories
En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!