comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Draw widget mouse position error
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Draw widget mouse position error [message #21127] Fri, 11 August 2000 00:00
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
"Oliver Smith" <osmith@dera.gov.uk> writes:

> Hi,
>
> I use a draw widget with motion events turned on, I've noticed that a double
> click event has a different y-position to a single click event. This is
> demonstrable by the code at the bottom of this message. For a double click,
> the events returned give:
> X Y
> Cursor position = 187 110
> Cursor position = 187 110
> Cursor position = 187 111
> Cursor position = 187 110
>
> It is easy to work around the problem by detecting the double click
> (event.clicks = 2) and subtracting 1 from event.y
>
> I can recreate the problem on another computer of almost identical
> specification to my own. I am using IDL 5.3.1 on NT 4. Can anybody recreate
> this bug and on what platforms?

I cannot reproduce this. Are you sure you just aren't moving the
mouse a little when you click?

Craig

IDL> print, !version
{ x86 linux unix 5.2.1 Jun 4 1999}

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
Re: Draw widget mouse position error [message #21128 is a reply to message #21127] Fri, 11 August 2000 00:00 Go to previous message
Martin Schultz is currently offline  Martin Schultz
Messages: 515
Registered: August 1997
Senior Member
Oliver Smith wrote:
>
> Hi,
>
> I use a draw widget with motion events turned on, I've noticed that a double
> click event has a different y-position to a single click event. This is
> demonstrable by the code at the bottom of this message. For a double click,
> the events returned give:
> X Y
> Cursor position = 187 110
> Cursor position = 187 110
> Cursor position = 187 111
> Cursor position = 187 110
>
> It is easy to work around the problem by detecting the double click
> (event.clicks = 2) and subtracting 1 from event.y
>
> I can recreate the problem on another computer of almost identical
> specification to my own. I am using IDL 5.3.1 on NT 4. Can anybody recreate
> this bug and on what platforms?
>
> Regards,
>
> Oliver Smith
> [program snipped][/color]

Hi Oliver,

don't see any such behaviour (IDL 5.3 on Linux) except if I really
move the mouse wildly between the two clicks. Too much coffee ?

Cheers,
Martin


PS: Search dejanews on double clicks. I remember there has been some
discussion about this a while ago.
It's very well posible that you find it on David Fanning's web page,
too.

--
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[[ Dr. Martin Schultz Max-Planck-Institut fuer Meteorologie [[
[[ Bundesstr. 55, 20146 Hamburg [[
[[ phone: +49 40 41173-308 [[
[[ fax: +49 40 41173-298 [[
[[ martin.schultz@dkrz.de [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Cell boundary program?
Next Topic: Re: page orientation

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 23:55:22 PDT 2025

Total time taken to generate the page: 1.51977 seconds