help-octave
[Top][All Lists]
Advanced

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

Callback function


From: FM
Subject: Callback function
Date: Mon, 10 Mar 2014 05:59:44 -0700 (PDT)

Hi,

I want to use the callback function 'WindowButtonMotionFcn' in a figure. But
the callback function is neved called. As a simple example consider

> hfig = figure;
> set(hfig, 'WindowButtonMotionFcn', @Test)
> set(hfig, 'WindowButtonDownFcn', @Test)

The function test.m prints simple a message.

function Test(hObj, event)

disp('I am in the callback function')


Now if someone clicks into the figure, the message occurs but it don't occur
when the mouse is moved. What am I doing wrong?

Best regards
FM



--
View this message in context: 
http://octave.1599824.n4.nabble.com/Callback-function-tp4662953.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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