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

Home » Public Forums » archive » Number of colors of widget appliation
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Number of colors of widget appliation [message #17982] Tue, 23 November 1999 00:00 Go to previous message
Carsten Dominik is currently offline  Carsten Dominik
Messages: 45
Registered: February 1998
Member
Hi.

I am develloping a widget application with IDL. The widget contains a
couple of draw windows. One displays an image I read from a jpg file,
the other display graphic objectes.

I do not have enough colors in the widget program, and I would like to
use more. Of course I went through Dave Fannings web site and found
the tip how to force IDL to use a certain number of colors.

So I tried to add an COLORS ekyword to the widget_draw commands, but
that does not work. IDL still shares the colors with my desktop and
allocates too few colors.

The I thought: lets try to be clever: I just open a window before I
start my widget application. So I did

IDL> window, colors=200
IDL> launch_my_appl.

What happens is this: The "window" call indeed allocates a large
number of colors. The widget application seems to use many colors as
well, but it dissplays them with the shares color map - totally
wrong. THis is independant of where my cursor is - on the widget or
somewhere else.

Now, when I move the cursor to the window I opened with "window, colors=200",
the draw window in the widget shows the correct colors, but the rest
of the widget is wrong.

So how can I make the main window of a widget allocate its own color
table and share it with all child objects in that widget?

Thanks.

- Carsten, desperate, after a day of fiddling.

--
Carsten Dominik <dominik@astro.uva.nl> \ _ /
Sterrenkundig Instituut "Anton Pannekoek" |X| _
Kruislaan 403; NL-1098 SJ Amsterdam /| |\ _ _ _/ \
phone +31 (20) 525-7477; FAX +31 (20) 525-7484 ___|o|____/ ~~ \___/ ~~~~~
[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
Previous Topic: Image plot on back wall
Next Topic: DirectColor on linux

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

Current Time: Thu Oct 09 09:16:17 PDT 2025

Total time taken to generate the page: 0.23939 seconds