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 #72635 is a reply to message #72634] Tue, 21 September 2010 21:16 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Paulo Penteado writes:

>> 1. In the IDLDE, why are the tabs now on the *bottom*
>> of the windows and not the *top*!? Can I change the
>> position? >
> Preferences->General->Appearance->View tab positions.

Hooray! I knew this had to be *somewhere*! Thanks!

>> 2. I thought I would learn about the NG by porting
>> some of my DG applications. But, yowzer! Most of the
>> applications I wanted to port use some kind of
>> interaction in the graphics window. For example,
>> draw a rubberband box, move a line, window and
>> threshold, things like that. I can't seem to find
>> any way to do those kinds of things and use the
>> new graphics. Am I missing something? Are the
>> new graphics strictly for display and not for
>> interaction?
>
> There is the new widget_window, somewhat like a draw widget, but to
> contain new graphics.

Yeah, something like it. But here is a very simple
widget program. Running it produces *two* windows.
A window that looks like a normal IDL graphics window
and one that has a plot in it. The one that has the
plot in it is NOT the one that produces events when
I click in it. (This code is almost verbatim from
the on-line IDL help.) Any ideas?

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')
XManager, 'test', tlb, /No_Block, Event_Handler='test_ev'
END


After I wrote this, I find that I can get it to work
if I set the CURRENT keyword on the plot function. But,
I thought window.select made that window the current window.
(This is what the on-line help says.) But I can't find a
select property for the window object in the help anywhere.
Any insight into this?

Thanks,

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 12:15:53 PDT 2025

Total time taken to generate the page: 3.27434 seconds