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

Home » Public Forums » archive » Variable No. of Windows with Phase of Moon
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: Variable No. of Windows with Phase of Moon [message #61067 is a reply to message #60925] Wed, 25 June 2008 07:51 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Spon writes:

> I'd suggest zero-padding your theState array out to 256 or something
> on the (hopefully correct!) assumption that windows with indices
> greater than (N_Elements(theState) - 1) will be closed.
>
> It's a crude work-around. Maybe the old Wait,0 trick will be more
> useful?

I just modified my code so that if the index number I'm looking
for exceeds the size of the array, then I just assume the window
is not available. No harm so far, but I am using this to
restore the current graphics window after I create a window
to do something else. I don't expect to have problems in my
code, since I always know what window I'm drawing into, but
I'm thinking of the thousands of poor saps who have no idea. ;-)

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
Previous Topic: Re: Variable No. of Windows with Phase of Moon
Next Topic: problem with evf name

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

Current Time: Sat Oct 11 00:55:35 PDT 2025

Total time taken to generate the page: 0.56405 seconds