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

Home » Public Forums » archive » the dreaded issue: colors
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: the dreaded issue: colors [message #15734 is a reply to message #15695] Thu, 10 June 1999 00:00 Go to previous message
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
D. Mattes wrote:
>
> IDL gurus (and there are many of you!):
>
> it appears that when IDL first starts, !D.N_COLORS and !D.TABLE_SIZE are
> both 256 for my 8-bit display, and don't actually report the number of
> colors in the shared color table, until a window or device has been
> opened. how can i get around this "feature"? i suppose i could open and
> close a window before querying these system variables...
>

David -

You could put something like the following in your "idl_startup" file:

window, xsize=5, ysize=5, /pixmap, /free
wdelete

and this will do the trick. I often use this when I need to define
default fonts and the like in the startup file, and don't want
that nagging "IDL 0" window to come up.

Dave Foster
--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2240
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
[Message index]
 
Read Message
Read Message
Previous Topic: widget_programming
Next Topic: Re: arbitrary rotation of 3-d arrays

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

Current Time: Wed Oct 08 17:24:32 PDT 2025

Total time taken to generate the page: 0.00372 seconds