[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 21:12:05 +0100 |
Am 11. Februar 2019 um 20:36 Uhr schrieb "pavel":
> > Am 11. Februar 2019 um 15:57 Uhr schrieb "Markus Mützel":
> >>
> >> 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');
>
> Thanks a lot for your example. My code was:
>
> fig = figure('menubar', 'none');
> adding uimenus....
>
> And it shows no menu bar at all.
>
> However, your version with set works great:
>
> fig = figure();
> set(fig, 'menubar', 'none');
> adding uimenus....
>
> I am running Octave 4.2.2, linux amd64.
I can see the same problem with Octave 4.2. Luckily, this seems to have been
fixed for Octave 4.4.
Markus