bugGNU Octave - Bugs: bug #50818, vertical uicontrol slider seems...

 
 

bug #50818: vertical uicontrol slider seems flipped

Submitter:  <awrichar>
Submitted:  Mon 17 Apr 2017 03:50:22 PM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.0.3 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 18 Apr 2017 11:40:12 PM UTC, comment #1: 

Okay.  I don't think anyone from the Octave team knew what the desired behavior was.  I flipped the orientation of vertical sliders in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/7b95435e96a4).  This is on the development branch of Octave which will be released as 4.4.0, but there is no date for that yet.  In order to see the change you will need to wait for the next stable release, or build from development sources.

Rik <rik5>
Group administrator
Mon 17 Apr 2017 03:50:22 PM UTC, original submission:  

The uicontrol slider seems to be flipped top-down relative to the Matlab version, i.e. the Octave slider increases in value as you move the slider thumb DOWN, contrary to Matlab's convention of increasing as you move the slider thumb UP. 

This was observed on Debian 8 (jessie) 64-bit, Octave version 4.0.3, compared against Matlab R2014a (with the HG2 flag) on Ubuntu 14.04 LTS 64-bit.

The simple GUI below demonstrates the difference between Octave vs. Matlab, which updates the text string displayed in an edit box with the current position of a vertical slider:


S.hf = figure( ...
    'Units','pixels', ...
    'Position', [400 400 80, 250], ...
    'MenuBar', 'none', ...
    'Name', 'Control Panel', ...
    'NumberTitle', 'off', ...
    'Resize', 'off'  ...
    );

S.hslider = uicontrol( ...
    'Parent', S.hf, ...
    'Style', 'slide', ...
    'Unit', 'pixel', ...
    'Position', [30, 40, 20, 200], ...
    'Min', 1, ...
    'Max', 100, ...
    'Value', pi...
    );

S.hedit = uicontrol( ...
  'Parent', S.hf, ...
  'Style', 'edit', ...
  'Units', 'pixel', ...
  'Position', [10, 10, 60, 20], ...
  'String', num2str(get(S.hslider, 'Value')) ...
  );

set(S.hslider, 'Callback', {@(src, event, handles) set(handles.hedit, 'String', num2str(get(handles.hslider, 'Value')));
, S});


(A quick search of the bug reports doesn't seem to show this incompatibility as being previously submitted, but perhaps I missed something.)

<awrichar>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by awrichar (Submitted the item)
  • -email is unavailable- added by awrichar
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-04-18 rik5 StatusNone Fixed
        Open/ClosedOpen Closed
    2017-04-17 awrichar Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code