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

Home » Public Forums » archive » Draw widget updates and mouse movement
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Draw widget updates and mouse movement [message #20380] Wed, 21 June 2000 00:00 Go to next message
nilsj is currently offline  nilsj
Messages: 6
Registered: May 1999
Junior Member
A program I wrote creates a WIDGET_DRAW, does a LOAD_CT, then displays an
image using TV. However, the new color table does not take effect until
the mouse pointer moves over the draw widget. How can I force this color
table to take effect immediately?
Re: Draw widget updates and mouse movement [message #20453 is a reply to message #20380] Thu, 22 June 2000 00:00 Go to previous message
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
Jared Crossley wrote:
> I have a similar problem. When I display an image and load a color
> table the colors do not appear until I move my mouse pointer over the
> image window. However, when my pointer is over the image window,
> everything on my screen changes color.
>
> I am using 24 bit color. If I try to switch to 8 bit via
>
> device, pseudo=8
>
> when I try to display an image I get an error message:
>
> % Unsupported X Windows visual (class: PseudoColor, depth: 8).
> Substituting default (class: TrueColor, Depth: 24).
>
> I would prefer to use 24 bit anyway. My question is: Why does
> everything on my screen change colors when my mouse moves over the
> display window, and is there a way to fix this problem?
>
> I am running IDL 5.3 (linux x86).

Your X server does not support 8-bit visuals when the desktop is set to
24-bits per pixel (this is quite common in the Linux world). If your
desktop is set to 16 bits per pixel, then IDL may act unreliably because
IDL does not support 16-bit UNIX displays. I believe 16-bit displays are
only handled properly on Windows and MacOS platforms.

If your desktop is set to 16 bits per pixel, try setting it to 8 or 24
bits per pixel.

Did you try using the IDL startup file I posted with 'true_color=24'
instead of 'pseudo_color=8'?

Cheers,
Liam.
http://cimss.ssec.wisc.edu/~gumley
Re: Draw widget updates and mouse movement [message #20455 is a reply to message #20380] Thu, 22 June 2000 00:00 Go to previous message
Jared Crossley is currently offline  Jared Crossley
Messages: 3
Registered: June 2000
Junior Member
I have a similar problem. When I display an image and load a color
table the colors do not appear until I move my mouse pointer over the
image window. However, when my pointer is over the image window,
everything on my screen changes color.

I am using 24 bit color. If I try to switch to 8 bit via

device, pseudo=8

when I try to display an image I get an error message:

% Unsupported X Windows visual (class: PseudoColor, depth: 8).
Substituting default (class: TrueColor, Depth: 24).

I would prefer to use 24 bit anyway. My question is: Why does
everything on my screen change colors when my mouse moves over the
display window, and is there a way to fix this problem?

I am running IDL 5.3 (linux x86).

Thanks, Jared
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Landsat 7 HDF Data
Next Topic: very fast spline interp function for heavy oversampling?

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

Current Time: Wed Oct 08 19:43:40 PDT 2025

Total time taken to generate the page: 0.00464 seconds