Hide/Disable 'File' menu in Matlab figure window

20 visualizaciones (últimos 30 días)
premraj
premraj el 21 de Sept. de 2011
Respondida: Jim Hokanson el 1 de Mayo de 2020
How to Hide/ Disable the 'FILE' menu alone from figure window?
thanks in advance!!!
Prem

Respuesta aceptada

Daniel Shub
Daniel Shub el 21 de Sept. de 2011
The simplest might be:
set(gcf, 'MenuBar', 'None')
If you need more control I would start with:
  2 comentarios
premraj
premraj el 21 de Sept. de 2011
this will hide the entire menu right??
Atleast i need to keep the Hand/Rotation tool menu.
Daniel Shub
Daniel Shub el 21 de Sept. de 2011
You are correct, the set method will hide everything. I have edited my answer to provide a link.

Iniciar sesión para comentar.

Más respuestas (1)

Jim Hokanson
Jim Hokanson el 1 de Mayo de 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.

Categorías

Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by