octave-maintainers
[Top][All Lists]
Advanced

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

Re: Request for Matlab output


From: Nicholas Jankowski
Subject: Re: Request for Matlab output
Date: Wed, 4 Nov 2015 15:04:33 -0500

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



similar in 2015b.

30 Motion's , then 1 Click.  after the first click, no more Motions,
but each repeated mouseclick would produce another "Click" .



reply via email to

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