DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Understanding resources

Precedence rules for resource specifications

Because of the great flexibility you have in defining resource specifications, it is not uncommon to create specifications that conflict with each other. For example, take the following resource specifications for a hypothetical client, xclient:

   xclient*Buttons*background:  blue
   xclient*help*background:     red
The first resource specification sets the background color of all buttons to blue. The second resource specification overrides the value specified in the first specification, but only for the instance of widgets with the name ``help.'' In the event of conflicting specifications such as this, there are a number of rules that the resource manager follows in deciding which resource specification should have priority. In the case of a conflict, the most specific resource definition is used.

The precedence rules are as follows:



Next topic: Methods for specifying resources
Previous topic: Specifying values in resource specifications

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003