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

Home » Public Forums » archive » 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
Draw widget mouse position error [message #21130] Fri, 11 August 2000 00:00 Go to next message
Oliver Smith is currently offline  Oliver Smith
Messages: 11
Registered: March 2000
Junior Member
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


PRO DRAW_EVENT, event
Print, 'Cursor position = ', Event.x, Event.y
END

PRO ojs

base = Widget_Base(UNAME = 'WID_BASE', SCR_XSIZE=300 ,SCR_YSIZE=200)
draw = Widget_Draw(Base, UNAME = 'WID_DRAW',SCR_XSIZE = 300, SCR_YSIZE =
200, /BUTTON_EVENTS, EVENT_PRO = 'DRAW_EVENT')

Widget_Control, /REALIZE, base
Xmanager, 'WID_BASE', base, /NO_BLOCK

END
Re: Draw widget mouse position error [message #21237 is a reply to message #21130] Tue, 15 August 2000 00:00 Go to previous message
Oliver Smith is currently offline  Oliver Smith
Messages: 11
Registered: March 2000
Junior Member
I've sent a message to UK support.

No reply as yet (other than acknowledgement).


Oliver

"David Fanning" <davidf@dfanning.com> wrote in message
news:MPG.14019fcf4bd700af989bc0@news.frii.com...
> Oliver Smith (osmith@dera.gov.uk) writes:
>
>> Can anybody else running IDL 5.x under NT recreate this? (see original
post
>> for code).
>
> Yes, I can recreate it in IDL 5.3.1 on Windows NT.
> It clearly looks like a bug to me. Have you reported it?
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting
> Phone: 970-221-0438 E-Mail: davidf@dfanning.com
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Toll-Free IDL Book Orders: 1-888-461-0155
Re: Draw widget mouse position error [message #21238 is a reply to message #21130] Tue, 15 August 2000 00:00 Go to previous message
Rostyslav Pavlichenko is currently offline  Rostyslav Pavlichenko
Messages: 2
Registered: August 2000
Junior Member
Oliver Smith wrote:
>
> I'm certain I'm not moving the mouse. The final y value (2nd release event)
> is the same as the first two, so the mouse would have to move for the second
> press, then move back to the original position for the second release. I
> don't see the cursor move at all on the screen.
>
> As for the coffee theory, I do have one of those oversized RSI mugs....
>
> Can anybody else running IDL 5.x under NT recreate this? (see original post
> for code).
>
> Regards,
>
> Oliver
>
> "Martin Schultz" <martin.schultz@dkrz.de> wrote in message
> news:39941513.FC29E9D@dkrz.de...
>
>> 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


Hi Oliver, Martin


On my W2K, IDL 5.3.1 I got SSDD (Same Shit Different Day)...


To be 100% correct not every time...

Cursor position = 96 151
Cursor position = 96 151
Cursor position = 96 152
Cursor position = 96 151

Cursor position = 96 151
Cursor position = 96 151
Cursor position = 96 152
Cursor position = 96 151

Cursor position = 96 151
Cursor position = 96 151
Cursor position = 96 151
Cursor position = 96 151

Cursor position = 162 149
Cursor position = 162 149
Cursor position = 162 150
Cursor position = 162 149

Cursor position = 162 149
Cursor position = 162 149
Cursor position = 162 149
Cursor position = 162 149

Cursor position = 162 149
Cursor position = 162 149
Cursor position = 162 150
Cursor position = 162 149

Cursor position = 162 149
Cursor position = 162 149
Cursor position = 162 150
Cursor position = 162 149

Cursor position = 162 149
Cursor position = 162 149
Cursor position = 162 150
Cursor position = 162 149

Cursor position = 162 149
Cursor position = 162 149
Cursor position = 162 150
Cursor position = 162 149

Cursor position = 162 149
Cursor position = 162 149
Cursor position = 162 150
Cursor position = 162 149

Cursor position = 162 149
Cursor position = 162 149
Cursor position = 162 150
Cursor position = 162 149

Cursor position = 162 149
Cursor position = 162 149
Cursor position = 162 149
Cursor position = 162 149


As you see 3/12=25% of the coorect behaviour. I am using MS IntelliMouse
Explorer USB mouse, if this info helps you... It was done with "ordinary
care";

for "supergentle pressing" the results are differnt

Cursor position = 63 144
Cursor position = 63 144
Cursor position = 63 144
Cursor position = 63 144

Cursor position = 63 144
Cursor position = 63 144
Cursor position = 63 144
Cursor position = 63 144

Cursor position = 63 144
Cursor position = 63 144
Cursor position = 63 144
Cursor position = 63 144

Cursor position = 63 144
Cursor position = 63 144
Cursor position = 63 144
Cursor position = 63 144

Cursor position = 63 144
Cursor position = 63 144
Cursor position = 63 144
Cursor position = 63 144

Cursor position = 63 144
Cursor position = 63 144
Cursor position = 63 144
Cursor position = 63 144

Cursor position = 63 144
Cursor position = 63 144
Cursor position = 63 144
Cursor position = 63 144

Cursor position = 63 144
Cursor position = 63 144
Cursor position = 63 144
Cursor position = 63 144

Cursor position = 63 144
Cursor position = 63 144
Cursor position = 63 144
Cursor position = 63 144

Cursor position = 63 144
Cursor position = 63 144
Cursor position = 63 144
Cursor position = 63 144

Cursor position = 63 144
Cursor position = 63 144
Cursor position = 63 144
Cursor position = 63 144

Cursor position = 63 144
Cursor position = 63 144
Cursor position = 63 144
Cursor position = 63 144

12/12 = 100%

So I think driver-mouse sensitivity is the key to your question...


--

Best regards,

=================================================

Dr Rostyslav Pavlichenko

Research Center for
Development of Far Infrared Region
Fukui University

Bunkyo 3-9-1, Fukui 910-8507 Japan

phone: [+81] 776 27 8972
fax: [+81] 776 27 8752
fax: [+81] 776 27 8750

mailto:slavik@maxwell.apphy.fukui-u.ac.jp

=================================================
Re: Draw widget mouse position error [message #21240 is a reply to message #21130] Mon, 14 August 2000 00:00 Go to previous message
mikef is currently offline  mikef
Messages: 9
Registered: May 1998
Junior Member
I am seeing the same problem in IDL 5.2 on WinNT SP4.
The Y value is always one more on the release that indicates a double-click.

In article <8n8af7$448$1@trog.dera.gov.uk>,
Oliver Smith <osmith@dera.gov.uk> wrote:
> I'm certain I'm not moving the mouse. The final y value (2nd release event)
> is the same as the first two, so the mouse would have to move for the second
> press, then move back to the original position for the second release. I
> don't see the cursor move at all on the screen.
>
> As for the coffee theory, I do have one of those oversized RSI mugs....
>
> Can anybody else running IDL 5.x under NT recreate this? (see original post
> for code).
>
> Regards,
>
> Oliver
--
--
Mike Fitzgibbon MRFitz@ns.arizona.edu
UofAz, LPL phone:(520)626-4791
Systems Programmer, Pr. fax: (520)621-6783
Re: Draw widget mouse position error [message #21252 is a reply to message #21130] Mon, 14 August 2000 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Oliver Smith (osmith@dera.gov.uk) writes:

> Can anybody else running IDL 5.x under NT recreate this? (see original post
> for code).

Yes, I can recreate it in IDL 5.3.1 on Windows NT.
It clearly looks like a bug to me. Have you reported it?

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: Draw widget mouse position error [message #21253 is a reply to message #21130] Mon, 14 August 2000 00:00 Go to previous message
Oliver Smith is currently offline  Oliver Smith
Messages: 11
Registered: March 2000
Junior Member
I'm certain I'm not moving the mouse. The final y value (2nd release event)
is the same as the first two, so the mouse would have to move for the second
press, then move back to the original position for the second release. I
don't see the cursor move at all on the screen.

As for the coffee theory, I do have one of those oversized RSI mugs....

Can anybody else running IDL 5.x under NT recreate this? (see original post
for code).

Regards,

Oliver


"Martin Schultz" <martin.schultz@dkrz.de> wrote in message
news:39941513.FC29E9D@dkrz.de...


> 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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Sound in IDL
Next Topic: Re: Change of Address Was: object newbie

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

Current Time: Wed Oct 08 15:57:56 PDT 2025

Total time taken to generate the page: 0.00642 seconds