[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom-only uimenu in figure

From: Markus Mützel
Subject: Re: Custom-only uimenu in figure
Date: Mon, 11 Feb 2019 15:57:02 +0100

"Pavel Hofman" wrote:
> please is it possible to have only custom-added uimenu items in the menu 
> bar of figure? I am trying to remove the default ones (File, Edit, Help) 
> while keeping the menu bar for my custom uimenu items, to no avail. 
> Either no menu bar, or menu bar with the default ones plus my added 
> custom items.

Removing the default menu before adding new elements works for me:
hf = figure();
set(hf, 'menubar', 'none');
m1 = uimenu(hf, 'Label', 'Menu 1');
e1 = uimenu(m1, 'Label', 'Element 1');
e2 = uimenu(m1, 'Label', 'Element 2');


reply via email to

[Prev in Thread] Current Thread [Next in Thread]