[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49552] uicontrol popupmenu sizing
From: |
jsh |
Subject: |
[Octave-bug-tracker] [bug #49552] uicontrol popupmenu sizing |
Date: |
Mon, 7 Nov 2016 08:25:49 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0 |
URL:
<http://savannah.gnu.org/bugs/?49552>
Summary: uicontrol popupmenu sizing
Project: GNU Octave
Submitted by: jsh
Submitted on: Mon 07 Nov 2016 08:25:47 AM GMT
Category: GUI
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.0.3
Operating System: Any
_______________________________________________________
Details:
uimenus in Octave take the whole height of the specified uicontrol which can
end up looking quite bad as in the lower panel in the attached code. In Matlab
the popupmenu height is always fixed to the height of the string/text. Also
Matlab popupmenu background default is white while in Octave I assume its
inherited from the parent.
f = figure( 'toolbar', 'none' );
p1 = uipanel( 'parent', f, 'position', [0 1-1/8 1 1/8], 'title', 'title1' );
p2 = uipanel( 'parent', f, 'position', [0 0 1 1/2], 'title', 'title2' );
c1 = uicontrol( 'parent', p1, 'units', 'normalized', 'position', [0 0 1 1],
'style', 'popupmenu', 'string', {'1' '2' '3' '4' '5'} );
c2 = uicontrol( 'parent', p2, 'units', 'normalized', 'position', [0 0 1 1],
'style', 'popupmenu', 'string', {'a' 'b' 'c' 'd' 'e'} );
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49552>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #49552] uicontrol popupmenu sizing,
jsh <=