Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: !P.backgrou...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 4 Topic 5715 of 5734
Post > Topic >>

Re: !P.background color question

by David Fanning <news@[EMAIL PROTECTED] > May 7, 2008 at 11:23 AM

3Rs writes:

> I want to know what is the number of the color [185,185,185] in B-W
> LINEAR palette for set this number in the system varibale !
> P.BACKGROUND.
> The idea is set the WIDGET_DRAW background color at the same color of
> the widgets default color.
> 
> If this is not a good idea I accept suggestions :)

The easiest way to get this color (which is called 'Face')
is with FSC_COLOR. Here is what it is on my Windows machine:

  IDL> Print, FSC_COLOR('Face', /Triple)
     236
     233
     216

It won't have anything to do with which color table you
have loaded, as this is a system color.

You can find FSC_COLOR here:

   http://www.dfanning.com/programs/fsc_color.pro

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.")




 4 Posts in Topic:
!P.background color question
3Rs <bernat.puigdomene  2008-05-07 10:11:51 
Re: !P.background color question
David Fanning <news@[E  2008-05-07 11:23:27 
Re: !P.background color question
3Rs <bernat.puigdomene  2008-05-07 10:36:59 
Re: !P.background color question
David Fanning <news@[E  2008-05-07 12:13:35 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu May 15 23:05:12 CDT 2008.