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 
Switch to threaded view of this topic Create a new topic Submit Reply
(no subject) [message #4835] Mon, 07 August 1995 00:00 Go to next message
Pearson J E is currently offline  Pearson J E
Messages: 7
Registered: August 1995
Junior Member
A small problem I am having in pvwave.

How do you read in values from data files into structs?

Any help would be appreciated.


--
|Jonathan Pearson - Postgrad| Why Waste Time Learning? |
| Computer Science Dept. | When Ignorance Is Instantaneous! |
|University Of Essex,England| |
| Mail--jepear@essex.ac.uk | - Hobbes, from Calvin and Hobbes fame |
Re: (no subject) [message #5323 is a reply to message #4835] Fri, 10 November 1995 00:00 Go 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
Re: (no subject) [message #5324 is a reply to message #4835] Fri, 10 November 1995 00:00 Go to previous message
djackson is currently offline  djackson
Messages: 31
Registered: June 1993
Member
In article <47t4kc$p5t@hearst.cac.psu.edu>
Pat Broos <patb> writes:

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

I wish I could have found the reference in the help system, but I
couldn't. Anyway, putting a line in your .Xdefaults file in your home
directory will do the trick for you. I keep all these around, only the
first one, the one without the '!' at the front will be used. Please
forgive the wraparound on two of these lines, they should be on one
line each.

Idl*fontList: -*-fixed-bold-*-normal-*-13-*-*-*-*-*-*-*
!Idl*fontList: -adobe-helvetica-bold-r-normal-*-10-100-*-*-*-*-*
!Idl*fontList: -*-helvetica-bold-r-normal-*-12-*-*-*-*-*-*-*
!Idl*fontList: -misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-1
!Idl*fontList:
-misc-fixed-bold-r-semicondensed--13-120-75-75-c-60-iso8859- 1
!Idl*fontList:
-misc-fixed-medium-r-semicondensed--13-100-100-100-c-60-iso8 859-1
!Idl*fontList:
-misc-fixed-medium-r-semicondensed--12-90-100-100-c-60-iso88 59-1
!Idl*fontList: -sgi-screen-medium-r-normal--12-120-72-72-m-70--ascii
!Idl*fontList: -sgi-screen-bold-r-normal--12-120-72-72-m-80--ascii

Also, you might not have all of these fonts on your system. You might
find one you like using:

IDL> print, xfont()

then copy and paste the result into an Idl*fontlist: line.

Cheers,
-Dick

Dick Jackson djackson@ibd.nrc.ca Institute for Biodiagnostics
Opinions are mine alone. National Research Council Canada, Winnipeg
"And I told him my dream was to live for all time
In some perfect refrain, like the man who wrote 'Danny Boy'."
- Joe Jackson, from the album _Night_Music_, 1994.
Re: (no subject) [message #5326 is a reply to message #4835] Thu, 09 November 1995 00:00 Go to previous message
Mark Fardal is currently offline  Mark Fardal
Messages: 51
Registered: October 1995
Member
> 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.


Thanks,
Mark
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: (no subject)
Next Topic: 3D velocity field representation

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

Current Time: Wed Oct 08 17:12:21 PDT 2025

Total time taken to generate the page: 0.00599 seconds