Hide/Disable 'File' menu in Matlab figure window
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
premraj
le 21 Sep 2011
Réponse apportée : Jim Hokanson
le 1 Mai 2020
How to Hide/ Disable the 'FILE' menu alone from figure window?
thanks in advance!!!
Prem
0 commentaires
Réponse acceptée
Daniel Shub
le 21 Sep 2011
The simplest might be:
set(gcf, 'MenuBar', 'None')
If you need more control I would start with:
2 commentaires
Daniel Shub
le 21 Sep 2011
You are correct, the set method will hide everything. I have edited my answer to provide a link.
Plus de réponses (1)
Jim Hokanson
le 1 Mai 2020
Here's what I needed:
h = findall(gcf, 'Tag', 'figMenuFile')
set(h,'visible','off')
All the other menus appear to be tagged in a similar way:
- figMenuHelp
- figMenuWindow
- etc.
0 commentaires
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!