HP (Hewlett-Packard) HP-UX Time Clock User Manual


 
Programs based on the X Tookit Intrinsics obtain resources from the following sources (other programs
usually support some subset of these sources):
RESOURCE_MANAGER root window property
Any global resources that should be available to clients on all machines should be stored in the
RESOURCE_MANAGER property on the root window of the first screen using the xrdb program.
This is frequently taken care of when the user starts X through the display manager.
SCREEN_RESOURCES root window property
Any resources specific to a given screen (e.g. colors) that should be available to clients on all
machines should be stored in the SCREEN_RESOURCES property on the root window of that
screen. The xrdb program will sort resources automatically and place them in
RESOURCE_MANAGER or SCREEN_RESOURCES, as appropriate.
application-specific files
Directories named by the environment variable XUSERFILESEARChpATH or the environment
variable XAPPLRESDIR, plus directories in a standard place (usually under /usr/lib/X11, but this
can be overridden with the XFILESEARChpATH environment variable) are searched for for
application-specific resources. For example, application default resources are usually kept in
/usr/lib/X11/app-defaults. See the X Toolkit Intrinsics - C Language Interface manual for details.
XENVIRONMENT
Any user, and machine specific resources may be specified by setting the XENVIRONMENT
environment variable to the name of a resource file to be loaded by all applications. If this
variable is not defined, a file named “$HOME/.Xdefaults-hostname” is looked for instead, where
hostname is the name of the host where the application is executing.
-xrm resourcestring
Resources can also be specified from the command line. The resourcestring is a single resource
name and value as shown above. If the string contains characters interpreted by the shell (e.g.,
asterisk), they must be quoted. Any number of -xrm arguments may be given on the command
line.
Program resources are organized into groups called classes, so that collections of individual resources
(each of which are called instances) can be set all at once. By convention, the instance name of a
resource begins with a lowercase letter and class name with an uppercase letter. Multiple word resources
are concatenated with the first letter of the succeeding words capitalized. Applications written with the
X Toolkit Intrinsics will have at least the following resources:
background (class Background)
This resource specifies the color to use for the window background.
borderWidth (class BorderWidth)
This resource specifies the width in pixels of the window border.
borderColor (class BorderColor)
This resource specifies the color to use for the window border.
Most applications using the X Toolkit Intrinsics also have the resource foreground (class Foreground),
specifying the color to use for text and graphics within the window.
Graphics Administration Guide for HP-UX 10.20
Page 139