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

Home » Public Forums » archive » Re: widget draw background color
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
Re: widget draw background color [message #59079] Wed, 05 March 2008 15:21 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
bernat writes:

> Andrew Cool writes:
> !P.background = 255
> erase
> !P.Color = 0
>
> This is a good solution.

At least it is until you send the contents of that
draw widget off to a PostScript file. Then you will
be back. Here is a hint: white on white. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: widget draw background color [message #59080 is a reply to message #59079] Wed, 05 March 2008 15:18 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
bernat writes:

> I dont know which version of IDL u use but in 6.2 this is the result:
> Erase, Color=FSC_Color('sky blue')
> % Variable is undefined: FSC_COLOR.
>
> Andrew Cool writes:
> !P.background = 255
> erase
> !P.Color = 0
>
> This is a good solution.

I always use the latest. Andrew is always 4-5 years
behind on government VAX computers. :-)

Cheers,

David

P.S. You can find FSC_Color and all manner of other
useful programs here:

http://www.dfanning.com/documents/programs.html

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: widget draw background color [message #59081 is a reply to message #59080] Wed, 05 March 2008 15:00 Go to previous messageGo to next message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
Hey David,

I dont know which version of IDL u use but in 6.2 this is the result:
Erase, Color=FSC_Color('sky blue')
% Variable is undefined: FSC_COLOR.

Andrew Cool writes:
!P.background = 255
erase
!P.Color = 0

This is a good solution.

Thanks !

Bernat
Re: widget draw background color [message #59082 is a reply to message #59081] Wed, 05 March 2008 14:17 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
bernat writes:

> is it possible to change the background color of the widget draw
> (using direct graphics) ?

Widget_Control, drawID, Get_Value=wid
WSet, wid
Erase, Color=FSC_Color('sky blue')

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: widget draw background color [message #59209 is a reply to message #59079] Thu, 06 March 2008 18:18 Go to previous message
Andrew Cool is currently offline  Andrew Cool
Messages: 219
Registered: January 1996
Senior Member
On Mar 6, 9:21 am, David Fanning <n...@dfanning.com> wrote:
> bernat writes:
>> Andrew Cool writes:
>> !P.background = 255
>> erase
>> !P.Color = 0
>
>> This is a good solution.
>
> At least it is until you send the contents of that
> draw widget off to a PostScript file. Then you will
> be back. Here is a hint: white on white. :-)
>

David,

I didn't want to tread on the chance for you to sell another book! ;-)

Andrew
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Histogram and bin sizes
Next Topic: Re: On errors calculated by curve-fitting routines

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

Current Time: Wed Oct 08 15:27:07 PDT 2025

Total time taken to generate the page: 0.00602 seconds