octave-maintainers
[Top][All Lists]
Advanced

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

Re: Request for Matlab output


From: Avinoam Kalma
Subject: Re: Request for Matlab output
Date: Wed, 4 Nov 2015 21:55:21 +0200

Hi,

I am trying to figure out if the "windowbuttonmotionfcn" should be called after each mouse move event (very many times) in Qt or only if no callback is already being executed. Could someone run the following in Matlab and report back here:

hf = figure ();

set (hf, 'windowbuttonmotionfcn', 'pause (3), disp (''Motion'')')
set (hf, 'windowbuttondownfcn', 'disp (''Click'')')

%% Now move your mouse above the figure during about 5 s, click in the canvas once and move again during about 5s.

My question is how much times (if) the callbacks are triggered. I expect the output to be 2 times "Motion", 1 time "Click" and then 2 times "Motion".

Don't try this example in Octave as you'll get an uninterruptible series of "Motion" diplayed.

Thanks,

Pantxo

 

 

On Matlab 2010b on Win-7, I got 21 times "Motion", 1 time "Click" and that's all.

 

Avinoam

 

 


reply via email to

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