Wed 12 Oct 2016 05:12:05 PM UTC, comment #2:
looking at the code, it sets all uicontrols 'value' property to 1.0
Many of the controls don't care on its value for display so don't look wrong
Looking at matlab, using the example below and the running
get(u, 'value'), it looks like most control (except listbox and popupmenu) default to value 0.
So it may make sense to set the default value parameter to 0, and handle the 2 special cases.
|
Fri 17 Jun 2016 10:31:04 AM UTC, original submission:
Octave and Matlab differ in default settings for the backgroundcolor, foregroundcolor and value properties of uicontrols. Here is what Matlab does and a file is attached of a screenshot illustrating the differences:
In Octave, backgroundcolor is set to [0.83922 0.82353 0.81569], foregroundcolor is set to [0.13333 0.12157 0.11765] and value is always 1. Default color for a figure is [1 1 1].
My take on this is:
- while it might not be necessary that Octave and Matlab have the same default values for colors, it would be great if figure's color and uicontrol's backgroundcolor match.
- default setting for the value property in uicontrols should match Matlab's.
- there is an issue with checkbox, popupmenu and radiobutton uicontrols where it is impossible to change the backgroundcolor property (try with set(u,'backgroundcolor',[1 0 0]) )
- there seems to be an issue with a popupmenu uicontrol where it is impossible to change the foregroundcolor property (try with set(u,'foregroundcolor',[0 1 0]) )
|