[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #57128] no visual clue (graying) to enable=off
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #57128] no visual clue (graying) to enable=off for uicontrols |
Date: |
Sun, 26 Apr 2020 20:55:07 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko |
Follow-up Comment #8, bug #57128 (project octave):
On the coloring, Matlab seems to have a special quirk. When the background is
the default ([0.94, 0.94, 0.94]) it renders the background as white ([1 1 1])
instead. It seems stupid to have that sort of special case. Attached is a
test script which shows that behavior.
figure;
str = repmat ("on ", 1, 100);
h = uicontrol (...
'Style','edit', ...
'Units','normalized', ...
'Position',[0.25 0.25 0.5 0.2], ...
'Max',2, ...
'String', str);
disp ('Default background: '), get (h, 'backgroundcolor')
disp ("Notice background is white ([1 1 1])");
pause (2)
set (h, 'backgroundcolor', 'm');
disp ('Magenta background: '), get (h, 'backgroundcolor')
disp ("Background color now reflects backgroundcolor property");
pause (2)
set (h, 'backgroundcolor', [0.94, 0.94, 0.95]);
disp ('Backgroundcolor [0.94, 0.94, 0.95] (last value not default)');
disp ('Notice that background is now grey which matches the values set');
pause (2)
set (h, 'backgroundcolor', [0.94, 0.94, 0.94]);
disp ('Backgroundcolor [0.94, 0.94, 0.94] which is default, but shows up as
white');
(file #48950)
_______________________________________________________
Additional Item Attachment:
File name: tst_edit_bg.m Size:0 KB
<https://savannah.gnu.org/file/tst_edit_bg.m?file_id=48950>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?57128>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #57128] no visual clue (graying) to enable=off for uicontrols, Rik, 2020/04/24
- [Octave-bug-tracker] [bug #57128] no visual clue (graying) to enable=off for uicontrols, Guillaume, 2020/04/25
- [Octave-bug-tracker] [bug #57128] no visual clue (graying) to enable=off for uicontrols, Rik, 2020/04/25
- [Octave-bug-tracker] [bug #57128] no visual clue (graying) to enable=off for uicontrols, Rik, 2020/04/26
- [Octave-bug-tracker] [bug #57128] no visual clue (graying) to enable=off for uicontrols, Rik, 2020/04/26
- [Octave-bug-tracker] [bug #57128] no visual clue (graying) to enable=off for uicontrols, Rik, 2020/04/26
- [Octave-bug-tracker] [bug #57128] no visual clue (graying) to enable=off for uicontrols, Guillaume, 2020/04/26
- [Octave-bug-tracker] [bug #57128] no visual clue (graying) to enable=off for uicontrols,
Rik <=
- [Octave-bug-tracker] [bug #57128] no visual clue (graying) to enable=off for uicontrols, Guillaume, 2020/04/27
- [Octave-bug-tracker] [bug #57128] no visual clue (graying) to enable=off for uicontrols, Rik, 2020/04/27
- [Octave-bug-tracker] [bug #57128] no visual clue (graying) to enable=off for uicontrols, Rik, 2020/04/27