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

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

[Octave-bug-tracker] [bug #56646] SelectionType in a listbox's callback


From: Rik
Subject: [Octave-bug-tracker] [bug #56646] SelectionType in a listbox's callback
Date: Mon, 22 Jul 2019 13:09:06 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Update of bug #56646 (project octave):

                Priority:              5 - Normal => 3 - Low                
                  Status:                    None => Confirmed              

    _______________________________________________________

Follow-up Comment #1:

Do we even want to follow Matlab behavior here?  It doesn't seem correct given
their documentation.

uicontrol doesn't have a "SelectionType" property, only the figure object has
such a property.  The documentation for figure properties at
https://www.mathworks.com/help/matlab/ref/matlab.ui.figure-properties.html
says "Mouse selection type, returned as 'normal', 'extend', 'alt', or 'open'.
This property provides information about the last mouse button press that
occurred in the figure."

Even though a middle-click occurs over a uicontrol object, it is still the
last mouse button press that occurs in the figure.  Therefore, I think it
should return "extend".  In the same vein, right click should return 'alt'.

Also, since it is undocumented that keyboard input should set a mouse click
property, I don't think <space> or <return> should return "open".  Octave
usually doesn't bother to follow undocumented Matlab behavior since it can
change between versions without warning.

This still does leave three issues with uicontrol objects (and possibly other
graphic objects on a figure?).

1) Double-click should return "normal", "open"
2) Middle-click should return "extended"
3) Right-click should return "alt"

I also notice a slight delay in when the callback is activated.  I'll file a
different report about that.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56646>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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