Download "user manual"

Transcript
Using the Resource Database
Using the Resource Database
The resource database is automatically constructed by the function
XtDisplayInitialize(). The function is called by the execution of the Motif
products. The following information is provided as an explanation of the process
that takes place when the resource database is constructed. This database is loaded
from several sources, in the following order:
1.
The tool specific user resource file, Tk2Motif, is loaded. By convention, keep
the per-user settings in the $HOME/Tk2Motif file.
Do not move the Tk2Motif file to the
/usr/lib/app-defaults directory, as this may override critical
internal Oracle Toolkit resources.
WARNING:
2.
The resource database is loaded with resources that were loaded into the
Resource_Manager property of the root window of the X display using xrdb.
If this property is not set, the resources are loaded from the file .Xdefaults in
the user’s home directory.
3.
Any file named in the XENVIRONMENT environment variable is loaded if the
variable is set and the file exists.
It is also loaded with any file named $HOME/.Xdefaults-hostname, where
hostname is the name of the machine where the client application is running.
4.
The resource database is loaded with any resources corresponding to standard
X command line arguments such as -fg or -bg.
5.
After the resource database is created by XtDisplayInitialize(),
Tk2Motif.distype files are read and merged into the database. However,
values already in the database are not overridden.
Resources specified in these files begin with the application class name rather
than the application name. The naming convention for the file names is as
follows:
$ORACLE_HOME/guicommon6/tk60/admin/Tk2Motif.disptype
where disptype is the display type suffix (.rgb, .gs, or .bw.)
These files are the only ones that have the display type suffix. Although they
are read last, their resource values are merged in as if they were loaded first,
because the display type is unknown until after XtDisplayInitialize() is
A-2 Oracle Forms Developer and Reports Developer Installation Guide