[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Octave-bug-tracker] [bug #59949] Various minor GUI issues
From: |
Delorme, Arnaud |
Subject: |
Re: [Octave-bug-tracker] [bug #59949] Various minor GUI issues |
Date: |
Wed, 27 Jan 2021 02:17:39 -0000 |
- For popupmenu uicontrols, Matlab consider one line to calculate the extent
while Octave considers the multiple entries
figure; h = uicontrol('style', 'popupmenu', 'string', {'a' 'b' 'c' 'd'});
get(h, 'extent’)
Matlab -> [0 0 10 19]
Octave -> [0 0 7 48]
- For text uicontrols, Matlab takes into account character 10 as CR while
Octave does not
figure; h = uicontrol('style', 'text', 'string', ['a' 10 'b' 10 'c' 10 'd']);
get(h, 'extent’)
Matlab -> [0 0 11 64]
Octave -> [0 0 33 12]
- Octave generates an error when a string is numerically empty [] while Matlab
does not.
figure; h = uicontrol('style', 'text', 'string', []);
figure; h = uicontrol('style', ‘checkbox', 'string', []);
figure; h = uicontrol('style', ‘edit', 'string', []);
figure; h = uicontrol('style', ‘popupmenu', 'string', []);
figure; h = uicontrol('style', ‘listbox', 'string', []);
Matlab -> OK
Octave -> error
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Octave-bug-tracker] [bug #59949] Various minor GUI issues,
Delorme, Arnaud <=