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: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #49734] uimenu's position is sometimes 0
Date: Fri, 2 Dec 2016 12:22:12 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0

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

@Markus: I don't think following Matlab here is a good idea, if 0 is an
incorrect value what is the point of displaying a warning when we trigger an
error for other incorrect values?
More important I think is having the upper value right: this means that we
need to define a custom uimenu::set_position which checks the number N of
uimenus in the parent object and error out if the requested value is greater
than N.

The position property is updated by the graphics_toolkit but setting it in
uimenu.m is probably the best solution. Something like 


if (! any (strcmp (varargin, "position")))
  nmenu = numel (allchild (h, "-depth", 1, "type", "uimenu"))
  varargin{end+1} = "position";
  varargin{end+1} = nmenu+1;



    _______________________________________________________

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]