Concepts
Class Names or Instance Names Can Be Used
When specifying resource names, you can use either instance names or class
names. For example, a "Done" pushbutton may have an instance name of
"done" and a class name of "XmPushButton". To set the background color for
a hypothetical "Done" pushbutton, you can use:
Application.form.row.done.background: red
Or, you can use:
Application.form.row.XmPushButton.background: red
Applications also have class and instance names. For example, an application
may have an instance name of "applic1" and a class name of "Application". To
set the background color for a hypothetical "Done" pushbutton only in the
"applic1" application, you can use:
applic1.form.row.done.background: red
Note that instance names are more specific than class names. That is, class
names may apply to many instances of the widget.
The class and instance names for the widgets in the Graphical User Interface
can be displayed by choosing Help→X Resource Names and clicking on the
"All names" button.
Wildcards Can Be Used
A wildcard may be used to match a resource specification to many different
widgets at once. For example, to set the background color of all
pushbuttons, you can use:
Application*XmPushButton.background: red
Note that resource names with wildcards are more general than those
without wildcards.
494