Hide/Disable 'File' menu in Matlab figure window

10 次查看(过去 30 天)
How to Hide/ Disable the 'FILE' menu alone from figure window?
thanks in advance!!!
Prem

采纳的回答

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

请先登录,再进行评论。

更多回答(1 个)

Jim Hokanson
Jim Hokanson 2020-5-1
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.

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by