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 #72630 is a reply to message #72628] Wed, 22 September 2010 07:11 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
David Fanning wrote:
> 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. :-(

Yeah, I actually find that annoying. Why would I want to move the plot within a window?

Anyway, when I've used plot(), if I hold the shift key down, a zoom-rubberband box appears. I think that should be the
default and the plot-move action the one made active using the shift key. I would also like the middle mouse button to
back out the zooming-steps, and the right mouse button return the plot to the original scaling (I know the window button
down the bottom does that but I don't want to have to move my mouse all the way down there everytime I want to rescale
-- my wrist and forearm muscles are getting sore!)

cheers,

paulv



> 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
>
>
[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 08:19:23 PDT 2025

Total time taken to generate the page: 0.80173 seconds