Hide/Disable 'File' menu in Matlab figure window

조회 수: 3 (최근 30일)
premraj
premraj 2011년 9월 21일
답변: Jim Hokanson 2020년 5월 1일
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에서 MATLAB에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by