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

Home » Public Forums » archive » background color for draw widget
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
background color for draw widget [message #60741] Fri, 06 June 2008 07:16 Go to next message
cgoethel is currently offline  cgoethel
Messages: 20
Registered: April 2008
Junior Member
Hi All, When I create a simple draw widget, the background color
defaults to black. How do I change that to a light grey? Thanks for
your help! Cindy
Re: Background color [message #64278 is a reply to message #60741] Wed, 17 December 2008 07:11 Go to previous messageGo to next message
nakisa is currently offline  nakisa
Messages: 24
Registered: June 2007
Junior Member
Hi , I didn't use ERASE !
Re: Background color [message #64279 is a reply to message #60741] Wed, 17 December 2008 07:04 Go to previous messageGo to next message
Wout De Nolf is currently offline  Wout De Nolf
Messages: 194
Registered: October 2008
Senior Member
On Wed, 17 Dec 2008 06:29:13 -0800 (PST), nakisa
<nakisa.nooraee@gmail.com> wrote:

> Hi.
> I have an strange problem today, I use IDL.7 under linux(ubuntu) .
> I try to change the background color. with below command I create the
> window.
>
> window,xsize=1400,ysize=1400
>
> TVLCT,150,50,120,0
>
> plot,x,y,/psym,yrange=[5.6,5.75],xrange=[9.5,11.8],charsize= 3 ,title='
> none ',background=180 /NoData
>
>
> I use both commands(TVLCT and background) and change the numbers ,but
> still the window is in black !
> but when I write the TVLCT command in the terminal and run the file ,
> the color changes!!!!!!
> how can I control the background color from inside of pro not
> terminal ?!!
> best,nakisa

What happens when you use ERASE?
Re: Background color [message #64368 is a reply to message #64278] Thu, 18 December 2008 01:18 Go to previous message
Wout De Nolf is currently offline  Wout De Nolf
Messages: 194
Registered: October 2008
Senior Member
On Wed, 17 Dec 2008 07:11:57 -0800 (PST), nakisa
<nakisa.nooraee@gmail.com> wrote:

> Hi , I didn't use ERASE !

I know. But does it help when you do? ERASE sets the background color
to the default color (=!P.BACKGROUND) or to the one you specify (which
is an 8bit color index or a 24bit color value, depending on the
DECOMPOSED state of your device).
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Generating a widget 'event' from an external program...
Next Topic: compiling errors in different computers with CW_BGROUP and GET_SCRREEN_SIZE

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

Current Time: Wed Oct 08 19:28:11 PDT 2025

Total time taken to generate the page: 0.00465 seconds