[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: |
Tue, 29 Nov 2016 10:52:37 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0 |
URL:
<http://savannah.gnu.org/bugs/?49734>
Summary: uimenu's position is sometimes 0
Project: GNU Octave
Submitted by: gyom
Submitted on: Tue 29 Nov 2016 10:52:35 AM GMT
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name: Guillaume
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
If you try to immediately access the position property of a newly created
uimenu, it sometimes returns 0. The correct value is returned if a pause
statement is added between the creation of the uimenu and the get('position')
query.
To reproduce the issue, create a script containing:
++
F = figure;
t0 = uimenu( F,'Label','Menu');
%pause(0.1)
pos = get(t0,'Position')
--
Executing the script from the Octave prompt often returns 0. If you uncomment
the pause statement, the position will be 1.
(note that, as pointed out in bug #44672, the already existing menus of a
figure (File, Edit, Help) are not 'visible' as the position of the newly
created menu item should be 4 and not 1.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49734>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #49734] uimenu's position is sometimes 0,
Guillaume <=