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

Home » Public Forums » archive » Re: IDL 8 Questions
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: IDL 8 Questions [message #72634 is a reply to message #72630] Tue, 21 September 2010 21:35 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> PRO Test_EV, event
> Help, event, /Structure
> END
>
> PRO Test
>
> tlb = Widget_Base()
> draw = Widget_Window(tlb, XSIZE=400, YSIZE=400, $
> BUTTON_EVENTS=1)
> Widget_Control, tlb, /REALIZE
> Widget_Control, draw, Get_Value=window
> window.select
> p = plot(findgen(11), color='red', /CURRENT)
> XManager, 'test', tlb, /No_Block, Event_Handler='test_ev'
> END

Sorry, I forgot what I was writing about. :-)

So, that program above gives me a window, and I want
to do something in the window. Maybe draw a rubberband
box around some data points to do a statistical
calculation of some kind.

When I click inside the plot, I can move the plot!
Hooray! But, I don't WANT to move the plot. :-(

Moreover, I don't get those events (motion events?)
in my event handler. How am I suppose to program with
these things? Or, am I?

Also, if I click *outside* the plot, the window
itself draws a rubberband box. How did it know
that's what I was thinking about!? VERY cool! :-)

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Coyote and Catalyst Libraries Available on SVN Repository
Next Topic: call ENVI menu routines

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

Current Time: Sat Oct 11 03:37:16 PDT 2025

Total time taken to generate the page: 0.56353 seconds