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

Home » Public Forums » archive » Re: xmanager, /managed
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: xmanager, /managed [message #44008 is a reply to message #44003] Thu, 12 May 2005 06:42 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Benjamin Hornberger writes:

> I am trying this out, but I can't get it to work. I tried that line of
> code right before and right after the XMANAGER call, and right after the
> TLB was created. None of them worked.

Humm. I wonder if this is a Windows thing?

The code I use to test this with is XCOLORS:

http://www.dfanning.com/programs/xcolors.pro

The "managed" line is line 1104. Comment it out.
Then make sure there are no open windows in your IDL
session. Run XCOLORS. While it is on the display, type
this:

Plot, findgen(11)

The plot should show up in the XColors colorbar window.

Exit XColors and uncomment the managed line. Compile and run
it again, as before. This time the PLOT command should open
its own plot window.

> Also, does it mean when I finally want to plot something in my draw
> widget, I first have to save the content of !d.window, WSET to the draw
> widget, plot my stuff and then WSET back to the original value?

Well, I figure anyone who wants to draw into a window *always*
knows where they are drawing, so I don't ordinarily WSET back
to the original. Every man for himself, is my motto. But in a
widget program you must ALWAYS do a WSET to the window you
expect to draw into, yes.

Cheers,

David

P.S. Let me know if this is a Windows thing and I'll modify the
article.

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Axis suppression - XStyle
Next Topic: Re: an error of type 5 has occurred

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

Current Time: Sat Oct 11 03:50:36 PDT 2025

Total time taken to generate the page: 0.80298 seconds