bugGNU Octave - Bugs: bug #39580, "buttondownfcn" callback...

 
 

bug #39580: "buttondownfcn" callback does not function

Submitter:  Ben Abbott <bpabbott>
Submitted:  Sat 27 Jul 2013 02:58:52 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Ben Abbott Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 12 Mar 2015 04:03:47 AM UTC, comment #5: 

The buttondownfcn callback appears to be working in FLTK with the current development branch, closing as fixed.

Mike Miller <mtmiller>
Group Member
Fri 02 Aug 2013 01:28:38 PM UTC, comment #4: 
Michael Goffioul <goffioul>
Fri 02 Aug 2013 12:14:44 PM UTC, comment #3: 

Ok.  So the BottonXXXFcn's need additional code to determine object is on top at the mouse location.

Ben Abbott <bpabbott>
Group Member
Fri 02 Aug 2013 03:41:17 AM UTC, comment #2: 

The WindowButtonFcnXXX handlers are invoked whenever the mouse action occurs in the figure window, whatever is actually under the mouse pointer. The BtnFcnXXX handlers of the figure are only invoked for the corresponding mouse actions, but only when there's nothing else under the mouse pointer.

The WindowButtonFcnXXX properties only exist for figure objects.  The ButtonFcnXXX properties exist for any (primitive) objects.

Michael Goffioul <goffioul>
Fri 02 Aug 2013 01:56:14 AM UTC, comment #1: 

The fltk toolkit does include support for the windowbutton*fcn properties.  I'm not sure how those are intended to be different from the button*fcn properties.


Ben Abbott <bpabbott>
Group Member
Sat 27 Jul 2013 02:58:52 PM UTC, original submission:  

After entering the commands below,


graphics_toolkit fltk
close all
buttondownfcn = @(obj, event) disp (obj);
set (gca (), "buttondownfcn", buttondownfcn)


The axes handle should be printed to the command window each time the new axes object is clicked on.

I don't know if this is only a MacOSX problem or if it exists for all OSes.

Ben Abbott <bpabbott>
Group Member

 

(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 mtmiller (Posted a comment)
  • -email is unavailable- added by bpabbott (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-03-12 mtmiller StatusNone Fixed
        Open/ClosedOpen Closed
    2013-08-02 bpabbott Summary&quot;buttondownfnc&quot; callback does not function "buttondownfcn" callback does not function
    2013-07-28 bpabbott Operating SystemMac OS Any

    Back to the top

    Powered by Savane 3.14-3b9d.
    Corresponding source code