[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #59949] Various minor GUI issues
From: |
Kai Torben Ohlhus |
Subject: |
[Octave-bug-tracker] [bug #59949] Various minor GUI issues |
Date: |
Tue, 26 Jan 2021 21:37:22 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36 |
Follow-up Comment #2, bug #59949 (project octave):
Thank you for the examples. Please use the bug tracker
(https://savannah.gnu.org/bugs/?59949) for answering, otherwise your
information might get lost 🤯
[email submission:]
- 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
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59949>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/