|
From: | Pantxo Diribarne |
Subject: | Re: Request for Matlab output |
Date: | Thu, 5 Nov 2015 07:48:17 +0100 |
similar in 2015b.On Wed, Nov 4, 2015 at 2:55 PM, Avinoam Kalma <address@hidden> wrote:
> 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
30 Motion's , then 1 Click. after the first click, no more Motions,
but each repeated mouseclick would produce another "Click" .
[Prev in Thread] | Current Thread | [Next in Thread] |