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

Home » Public Forums » archive » Re: changing colors of widget-buttons
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: changing colors of widget-buttons [message #54145 is a reply to message #54144] Fri, 25 May 2007 06:42 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
BavarianMike86 writes:

> Well. You are a professional.
> IDL is the first programming language I ever used ;-)

Well, you are WAY too kind! :-)

But find this line:

Erase, Color=Total(sysColors.Face_3D * [1, 256, 65536L])

And change sysColors.Face_3D to a three-element array, specifying
any color you like. For example, yellow:

Erase, Color=Total([255,255,0]* [1, 256, 65536L])

Or, green:

Erase, Color=Total([0,255,0]* [1, 256, 65536L])

I just created a BGCOLOR keyword so I could specify the
color I wanted when I called the function.

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Color Tools Update for 24-bit Z-Buffer
Next Topic: Re: Need hint to use FOR loops using 3-D arrays

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

Current Time: Sat Oct 11 11:07:43 PDT 2025

Total time taken to generate the page: 2.07983 seconds