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

 
 

bug #31118: callback function not found

Submitted by:  Kai Habel <kahacjde>
Submitted on:  Fri 24 Sep 2010 06:37:58 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Other
Status: InvalidAssigned to: None
Originator Name: Kai HabelOpen/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by kahacjde (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 25 Sep 2010 09:36:29 PM UTCjweStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1