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
Re: Number of colors of widget appliation [message #18065 is a reply to message #17982] Tue, 23 November 1999 00:00 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Carsten Dominik <dominik@astro.uva.nl> writes:
>
> 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.
>

Yes, yes, yes! I described this problem a few weeks ago. My
conclusion is that draw widgets do not update their color tables like
normal draw windows. This is true for me on Solaris and Linux
platforms, IDL 4 through 5.2.1, 8 bit color. While color flashing is
annoying, at least it flashes to the *right* colors on a normal draw
window. Not so for draw widgets.

I haven't found a solution to this, but I desperately want one. The
most tricky thing I've tried is reseting the color table in a
"tracking" event handler for the draw widget. The handler was
invoked, but the color tables were not switched.

I think that IDL believes that it has the proper color table loaded,
but forgets to actually load it into the X window manager.

Craig


--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[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 21:58:47 PDT 2025

Total time taken to generate the page: 0.60424 seconds