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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: viewport events in widget_draw [message #12021] Wed, 17 June 1998 00:00
krieger is currently offline  krieger
Messages: 7
Registered: June 1997
Junior Member
In article <MPG.ff0b2002d397d539897e8@news.frii.com>,
davidf@dfanning.com (David Fanning) wrote:

> Karl Krieger (krieger@ipp.mpg.oz) writes:
>
>> Has anyone managed to read out viewport coordinates generated by
>> a viewport scrolling event?
>
> Try this:
>
> Widget_Control, event.id, Get_Draw_View=thisView
> Print, thisView

Thank's to all who pointed this out. RTFM, I know, but it's easy to get
lost in this tome ;-)

Karl

--
To reply by email, please replace .oz by .de in the address field.
Sorry for the inconvenience caused by this anti-SPAM measure.
BTW: I do not speak for my employer despite my mouth is big enough.
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Domain size distribution ?
Next Topic: Re: Q: Array of Structures

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

Current Time: Fri Oct 10 14:00:01 PDT 2025

Total time taken to generate the page: 0.24355 seconds