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

Re: Draw widget mouse position error



"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
--------------------------------------------------------------------------