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

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

[Octave-bug-tracker] [bug #49734] uimenu's position is sometimes 0


From: Guillaume
Subject: [Octave-bug-tracker] [bug #49734] uimenu's position is sometimes 0
Date: Thu, 1 Dec 2016 12:22:52 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0

Follow-up Comment #3, bug #49734 (project octave):

Hi Pantxo, thanks for the explanation. I now understand why the error only
started occurring recently (note that this is an error and not a warning).

Matlab returns the correct value straight away:

++
figure, get(uimenu('label','menu'),'position')
ans =
     9
--

If a figure has N menus, the allowed values in Matlab for position when
creating a new menu are 1:N+1. In Octave, they are 1 to Inf where any value
greater than N+1 is set to N+1.

Also, I tried with drawnow but it does not work.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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