|
|
Components of a resource specification are separated with delimiters, which are also known as ``bindings''. The following delimiters can be used:
If you want to specify tight bindings, you must be very familiar with the widget hierarchy; it is easy to use these bindings incorrectly.
For example, the following resource specification, indicating that xterm windows should be created with a scroll bar, does not work:
XTerm.scrollBar: trueThis specification ignores the widget hierarchy of xterm, in which the VT100 window is considered one widget, the Tektronix window another, and the menus a third. To configure xterm to use a scroll bar using tight bindings, you would need to specify:
XTerm.VT100.scrollBar: trueRather than decipher the widget hierarchy of a client and risk making a mistake, it is far simpler to use the asterisk delimiter in your resource specifications:
XTerm*scrollBar: trueThe asterisk, acting as a wildcard, tells the resource manager to locate any widgets in xterm's widget hierarchy that support a scroll bar and assign a scroll bar to them.