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

Home » Public Forums » archive » Widget Colors
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
Widget Colors [message #2385] Fri, 24 June 1994 11:19 Go to next message
tai is currently offline  tai
Messages: 14
Registered: June 1994
Junior Member
Does anyone know how to change the colors of programs using widgets?
Reading black on blue text is bruising my eyes. I suspect this has
something to do with my X11R5 windowing setup, but I can't find any
mention of blue in my .twmrc or .Xdefaults. I guess I'd prefer black
on grey. Thanks.


Alan Tai
Re: Widget colors [message #13861 is a reply to message #2385] Tue, 15 December 1998 00:00 Go to previous messageGo to next message
kashyap is currently offline  kashyap
Messages: 26
Registered: April 1993
Junior Member
I found out that, at least on our system (SunOS 2.5+/CDE) IDL (5.1)
only looks at the .Xdefaults file, and doesn't seem to care about
the .Xresources, even when you do xrdb.. which is very strange
and probably has to do with some quirk of CDE.

Vinay

In article <367572E5.5FBB@bial1.ucsd.edu>,
David Foster <foster@bial1.ucsd.edu> wrote:
> Vinay L. Kashyap wrote:
>>
>> Once upon a time, setting
>> Idl*background: <bgcolor>
>> Idl*foreground: <fgcolor>
>> in $HOME/.Xresources used to allow us to customize the colors of
>> IDL widgets on UNIX/X systems.
>>
>> Apparently, not anymore? Have the resource names changed, or are
>> there other ways to set the colors?
>>
>> Thanks,
>> Vinay
>
> I believe this should still work. Did you remember to use xrdb
> to update the resources?
>
> Dave
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
> David S. Foster Univ. of California, San Diego
> Programmer/Analyst Brain Image Analysis Laboratory
> foster@bial1.ucsd.edu Department of Psychiatry
> (619) 622-5892 8950 Via La Jolla Drive, Suite 2240
> La Jolla, CA 92037
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
--
Vinay
____________________________________________________________ __________________
kashyap@head-cfa.harvard.edu 617 495 7173 [CfA/P-146] 617 496 7173 [F]
Re: Widget colors [message #13876 is a reply to message #2385] Mon, 14 December 1998 00:00 Go to previous messageGo to next message
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
Vinay L. Kashyap wrote:
>
> Once upon a time, setting
> Idl*background: <bgcolor>
> Idl*foreground: <fgcolor>
> in $HOME/.Xresources used to allow us to customize the colors of
> IDL widgets on UNIX/X systems.
>
> Apparently, not anymore? Have the resource names changed, or are
> there other ways to set the colors?
>
> Thanks,
> Vinay

I believe this should still work. Did you remember to use xrdb
to update the resources?

Dave

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2240
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
Re: WIDGET COLORS [message #65648 is a reply to message #2385] Fri, 13 March 2009 11:28 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
llo writes:

> How to construct nice IDL multiplataform widgets ?
> There is a way to do that ?
>
> Nice font, nice colors, etc...

You are asking WAY too much now!

Cheers,

David

P.S. Let's just say I've found if you stick to Windows,
your widget programs are almost always happy. :-)

--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: WIDGET COLORS [message #65649 is a reply to message #2385] Fri, 13 March 2009 11:13 Go to previous message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
Ok,

How to construct nice IDL multiplataform widgets ?
There is a way to do that ?

Nice font, nice colors, etc...
Re: WIDGET COLORS [message #65650 is a reply to message #2385] Fri, 13 March 2009 10:50 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
llo writes:

> Ok, thank you.
> I don't wanna use this beacause I'll run my widget in Win.. but thank
> you anyway.
>
> By de way, do you know how to describe a nice font ?
> My example was: font='-adobe-helvetica-bold-r-normal--12-*-*-*' and is
> not nice.

Uh, that doesn't look like a windows font. Could
that be your problem? :-)

Choose something in your Windows/Fonts directory.

Cheers,

David

--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: WIDGET COLORS [message #65651 is a reply to message #2385] Fri, 13 March 2009 10:37 Go to previous message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
Ok, thank you.
I don't wanna use this beacause I'll run my widget in Win.. but thank
you anyway.

By de way, do you know how to describe a nice font ?
My example was: font='-adobe-helvetica-bold-r-normal--12-*-*-*' and is
not nice.

thanks, llo
Re: WIDGET COLORS [message #65652 is a reply to message #2385] Fri, 13 March 2009 10:01 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
llo wrote:
> Hi people,
>
> Anybody knows how to change the default widget colors? The IDL
> widgets are so ugly and do something presentable is sometimes
> difficult.
> Anyway, how to change the WIDGET_TEXT background color ? The picture
> showed in the manual is white but my widget_text is grey. It depends
> of the OS ?
>
> Thanks,
> Llo

Yes, the color of the WIDGET_TEXT does depend on the OS. The only way I
know of changing colors, is that on Unix only, to use xdefaults. We use
the following to make the background of a WIDGET_TEXT white:

Idl*vv*XmText*background: white

Mike
--
www.michaelgalloy.com
Associate Research Scientist
Tech-X Corporation
Re: WIDGET COLORS [message #65655 is a reply to message #2385] Fri, 13 March 2009 08:32 Go to previous message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
Another question is how to change the widget font.

I used: font='-adobe-helvetica-bold-r-normal--12-*-*-*' but is not a
super nice font.
Anybody can give me a nice font definition?

Thanks
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: possible to write screen capture of widget program to tiff?
Next Topic: IDL on linux "out of the box", license

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

Current Time: Wed Oct 08 15:13:02 PDT 2025

Total time taken to generate the page: 0.00670 seconds