octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #50818] vertical uicontrol slider seems flippe


From: Andrew
Subject: [Octave-bug-tracker] [bug #50818] vertical uicontrol slider seems flipped
Date: Mon, 17 Apr 2017 11:50:23 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

URL:
  <http://savannah.gnu.org/bugs/?50818>

                 Summary: vertical uicontrol slider seems flipped
                 Project: GNU Octave
            Submitted by: awrichar
            Submitted on: Mon 17 Apr 2017 03:50:22 PM UTC
                Category: GUI
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.3
        Operating System: GNU/Linux

    _______________________________________________________

Details:

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.)




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?50818>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]