octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #49529] set(gcf, "menubar", "figure") does not


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #49529] set(gcf, "menubar", "figure") does not restore figure menu bar
Date: Fri, 4 Nov 2016 15:45:43 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0

Follow-up Comment #9, bug #49529 (project octave):

I attached an updated patch please. I used the following sequence for tests:


figure
annotation ("rectangle", [0 0 1 1], "edgecolor", "r", "linewidth", 2);
h1 = uimenu ("label", "foo", "callback", "disp (get (gcbo (), 'label'))");
h2 = uimenu ("label", "bar", "callback", "disp (get (gcbo (), 'label'))");
set(gcf,'menubar','none') # The main menubar and the toolbar dissapear, custom
menus remain
set (h1, "visible", "off") # foo menu disappears
set (h2, "visible", "off") # bar menu disappears and the figure is correctly
resized
set (h2, "visible", "on")  # bar menu reappears and the figure is correctly
resized
set(gcf,'menubar','figure') # main menu and toolbar reappear and the figure is
correctly resized
set (h1, "visible", "on") # foo menu reappears


(file #38886)
    _______________________________________________________

Additional Item Attachment:

File name: menubar2.patch                 Size:3 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49529>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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