How do I remove items from the standard menus that appear in figures?

6 views (last 30 days)
I want to remove the edit options from the standard menu that appears at the top of a figure.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 8 Jul 2009
You can get the handle to the particular menu options you wish to remove by getting all the handles then refining your list to the ones you wish.
For example if you wished to remove the Edit submenu from the menu you would do the following:
allhandles = findall(FigureHandle);
menuhandles = findobj(allhandles,'type','uimenu');
edithandle = findobj(menuhandles,'tag','figMenuEdit');
delete(edithandle);
If you do not know the tag of the particular menu option that you would like to get rid of you can see all the tags using the following command:
allhandles = findall(FigureHandle);
menuhandles = findobj(allhandles,'type','uimenu');
get(menuhandles,'tag')

More Answers (0)

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!