bugGNU Octave - Bugs: bug #31118, callback function not found

 
 

bug #31118: callback function not found

Submitter:  Kai Habel <kahacjde>
Submitted:  Fri 24 Sep 2010 06:37:58 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Other
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Kai Habel Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 25 Sep 2010 09:36:29 PM UTC, comment #1: 

I think this is expected behavior.  If you want to refer to a subfunction, you will need to use a function handle, not the name of the function stored in a character string.

John W. Eaton <jwe>
Group administrator
Fri 24 Sep 2010 06:37:58 PM UTC, original submission:  

Let myfun.m be:
---------------
function myfun
  figure(1)
  set(1,'windowbuttondownfcn','myfcn')
end

function myfcn
  disp('button down')
end
--------------

If call myfun and click on the figure and triggering the windowbuttondownfcn the respective callback myfcn is not found.

octave:3> myfun
octave:4> error: `myfcn' undefined near line 4 column 1

Kai Habel <kahacjde>
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 jwe (Posted a comment)
  • -email is unavailable- added by kahacjde (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-09-25 jwe StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code