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

Home » Public Forums » archive » (no subject)
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: (no subject) [message #5323 is a reply to message #4835] Fri, 10 November 1995 00:00 Go to previous messageGo to previous message
knighton is currently offline  knighton
Messages: 12
Registered: June 1995
Junior Member
In <30A2D7E6.41C67EA6@shapley.colorado.edu> Mark Fardal <fardal@shapley.colorado.edu> writes:

>> Pat Broos writes:
>>
>> Does anyone know what X windows resource I can set to control the font size
>> used in IDL widgets?

> While we're on this subject, does anyone know where to find a
> comprehensive list of X resources used in the core IDL routines, and
> what they do? I couldn't find much helpful information in the IDL
> manuals. The X resources set in my .Xdefaults are

> Idl.colors: -5
> Idl*threeD: TRUE
> Idl*scale: 10
> Idl*foreground: white
> Idl*background: mediumPurple4
> Idl*topShadowColor: white
> Idl*bottomShadowColor: PeachPuff2
> Idl*inputFocusColor: green

> but at the moment I'm not even sure what all of these do. Some of
> them may be set to ridiculous values because I was trying to find out.

Well, I don't think that there is a comprehensive list of X resources
used by IDL, but if you look in the file:

/usr/local/rsi/idl_4/resource/X11/lib/X11/app-defaults/Idl

or something to that effect, you can gain a lot of clues. This mostly
sets up idltool, but it also provides a little general information.

I get the impression that RSI doesn't support getting down and dirty
with resources because they can't guarantee backward compatibility
for your resource settings in future releases.

In my own experiments I have found the following global resource names seem
to work and give the ability to do basic color scheme setup:

Idl*

Idl*text*

Idl*button*

Idl*list*

To make text widgets have a white background and black text I use:

Idl*text*background: white
Idl*text*foreground: black

I have not tried setting fonts with resources, but I am sure that it's
possible. I typically use the FONT keyword to do this so that my
applications look consistent in layout to all of my users.

Note that you can also assign resource names with the RESOURCE_NAME
keyword. This allows you to get very specific in your applications.
Unfortunately, the standard IDL compound widgets don't support this and
require modification if you want to use this keyword.

I hope this helps.

Ken Knighton knighton@gav.gat.com knighton@cts.com
Fusion Division
General Atomics
San Diego, CA
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: (no subject)
Next Topic: 3D velocity field representation

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

Current Time: Tue Dec 02 13:03:22 PST 2025

Total time taken to generate the page: 0.48195 seconds