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

Home » Public Forums » archive » 24 bit colors in IDL
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: 24 bit colors in IDL [message #13669 is a reply to message #13280] Thu, 19 November 1998 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
William Daffer (I suspect) writes:

> The help file says...
>
> The colormap/visual class combination is chosen when IDL first
> connects with the X Window server. Note that if you connect with the X
> server by creating a window or
>
> using the DEVICE keyword to the HELP procedure,
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> the visual class will be set; it then cannot be changed
> until IDL is restarted. If you wish to use a visual class other than
> the default, be sure to set it with a call to the DEVICE procedure
> before creating windows or otherwise connecting with the X Window
> server.
>
>
> I suspect that the same mechanism is used by
> 'device,get_visual_name=name' as is used in help,/device. In order to
> answer the question, a connection is made to the X-server, the die is
> cast, the matter is settled.
>
> If a connection to the X-server has not been made, I would rather see
> a "don't know" message returned,rather than have IDL decide on the
> visual. At least that way, when some routine started up, I'd know that
> I still have the option of pseudo color or true color available. This
> way, just asking the question decides the answer.

Oh, this is s-o-o-o-o ugly. And news to me too.
This whole business about never being able to set
your visual class after opening a window is extremely
inconvenient.

I would say that if you have no graphics windows
currently open you ought to be able to change your
visual class. After all, PV-Wave can do it. :-) :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Progamming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Status Bar Help
Next Topic: Is the new IDL5.2 for Linux ELF-based or a.out-based?

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

Current Time: Sun Oct 12 03:03:46 PDT 2025

Total time taken to generate the page: 0.40255 seconds