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

Home » Public Forums » archive » Re: Bug with object graphics, app_scroll and the mouse in 6.1 under Windows.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Bug with object graphics, app_scroll and the mouse in 6.1 under Windows. [message #40685 is a reply to message #40684] Tue, 24 August 2004 14:27 Go to previous message
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
I gave your code a quick try. I get different values for pressing and
releasing. Does this help?

Cheers,
Haje


"David Yip" <dcw_yip@yahoo.com> wrote in message
news:201431cc.0408241116.76603294@posting.google.com...
> So I upgraded to IDL 6.1. Now my program doesn't handle mouse events
> properly. I tracked it down and it seems that there's a bug with IDL
> 6.1 under Windows if you have a draw widget with app_scroll and object
> graphics enabled. The symptom is that the y coordinate of the mouse
> event oscillates between the correct value and the correct value plus
> the scroll range. So say the ysize of the widget is 600 and the
> draw_ysize is 800. When you click in the widget so that you're on y
> of 363, it oscillates between 363 and 563 even though you are clicking
> on the same spot over and over again. This didn't happen under 6.0 or
> 6.1 beta. This also doesn't happen on a Mac.
>
> I need both object graphics and scrolling. Is there a way around this
> or should we just drop back to 6.0?
>
> David
>
>
> Here's a program and output that demonstrates this:
>
> ---------------------- program -----------------------
>
> pro bug_event, event
> print, event.x, event.y
> end
>
> pro bug
> base = widget_base(title='bug')
> draw = WIDGET_DRAW(base, /button_events, /app_scroll, $
> graphics_level=2)
> widget_control, draw, xsize=600, ysize=600, draw_xsize=1200, $
> draw_ysize=1200
> widget_control, base, /realize
>
> xmanager, 'bug', base
> end
>
> ----------------------- output -----------------------
>
> 404 363
> 404 563 <-- wrong value
> 404 363
> 404 364
> 404 363
> 404 563 <-- wrong value
> 404 363
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Avoiding FOR loops ?
Next Topic: Animation

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

Current Time: Sun Oct 12 03:36:50 PDT 2025

Total time taken to generate the page: 0.56465 seconds