bugGNU Octave - Bugs: bug #46151, WindowButtonMotionFcn callback not...

 
 

bug #46151: WindowButtonMotionFcn callback not used with uipanel

Submitter:  -X- <jsh>
Submitted:  Thu 08 Oct 2015 01:51:48 AM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  pantxo
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 10 Oct 2015 10:39:00 AM UTC, comment #2: 

I fixed the execution of "windowbuttonmotionfcn" with uipanels here:
http://hg.savannah.gnu.org/hgweb/octave/rev/46edfbd31ad7

Closing report.

Pantxo Diribarne <pantxo>
Group Member
Fri 09 Oct 2015 07:30:15 AM UTC, comment #1: 

This is a regression from Octave 4.0 I introduced when implementing coordinates display.
I'll look into this.

Pantxo Diribarne <pantxo>
Group Member
Thu 08 Oct 2015 01:51:48 AM UTC, original submission:  

This could maybe be related to bug #46086, but possibly not so I'm opening a new case. Its essentially the same problem though that the callback isn't called in some cases:

1) An axis is put in a uipanel:


hf = figure ();
hp = uipanel ( 'parent', hf );
hax = axes ( 'parent', hp );

fcn = @(a,b) disp (get (gca (), 'currentpoint'));
set (hf, 'windowbuttonmotionfcn', fcn)


2) The uipanel is (partially) covering the axis:


hf = figure ();
hp = uipanel ( 'parent', hf, 'position', [0 0 0.5 1] );
hax = axes ( 'parent', hf );

fcn = @(a,b) disp (get (gca (), 'currentpoint'));
set (hf, 'windowbuttonmotionfcn', fcn)


Also, in this last case in Matlab the axis will be on top of the uipanel (so the uipanel does not hide the axis).

-X- <jsh>

 

(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 pantxo (Posted a comment)
  • -email is unavailable- added by jsh (Submitted the item)
  •  

    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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-10-10 pantxo StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2015-10-09 pantxo StatusNone Confirmed
    2015-10-09 pantxo CategoryGUI Plotting with OpenGL
        Item GroupIncorrect Result Regression
        Assigned toNone pantxo

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code