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

Home » Public Forums » archive » Re: viewport events in widget_draw
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: viewport events in widget_draw [message #12025 is a reply to message #12021] Wed, 17 June 1998 00:00 Go to previous message
menakkis is currently offline  menakkis
Messages: 37
Registered: June 1998
Member
krieger@ipp.mpg.oz (Karl Krieger) wrote:
> Has anyone managed to read out viewport coordinates generated by
> a viewport scrolling event? I am using IDL 5.1 under WinNT4.0.
> Setting /viewport_events as keyword for widget_draw makes
> the widget generate events when the scroll slider bars are moved
> (event.type is 3), however, I found no way to get the actual
> viewport coordinates with respect to the plotting plane.
> event.x and event.y return zero.

When handling the viewport event (event.type eq 3), use
WIDGET_CONTROL,draw_widget_id,GET_DRAW_VIEW=dview. Dview will be returned as
"a 2-element integer array giving the X and Y position relative to the lower
left corner of the graphics area".

Peter Mason

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading
[Message index]
 
Read Message
Read Message
Previous Topic: Domain size distribution ?
Next Topic: Re: Q: Array of Structures

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

Current Time: Sun Oct 12 04:33:07 PDT 2025

Total time taken to generate the page: 2.15915 seconds