Resource Editor for Multiple Widgets or Class Instances

When you select multiple widget, the Resource Editor displays the same text fields and resources as described in Instances View. The following sections describe the differences between views.


Note: These text fields are always automatically updated for the currently selected widget, regardless of whether resource information has been updated.


Resource Editor Text Fields for Multiple Widgets or 
Class Instances

The following sections describe the text fields displayed in the Resource Editor for multiply-selected object instances.

Instance Name

Displays a "!=" button to the left of the Instance Name text input field. Because multiple object instances are selected, each instance has a different name and all of the names cannot be displayed in this field. Click on the "!=" button to display the Multiple Header Editor, which lists the name of every object instance that is currently selected in the Instance column.

Class Name

The Class to which the object instances belong, if all of the selected instances belong to the same Class. Otherwise, a "!=" button is displayed to the left of the Class Name text input field.

If each instance belongs to a different Class, all of the Classes cannot be displayed in this field. Click on the "!=" button to display the Multiple Header Editor for a list of widget instance names currently selected in the Instance column, and each associated Widget Class in the Value column.


Note: Selecting one value from this list and then clicking on Apply sets the Class Name of all selected objects to that value.

Style

Displays the name of the resource style applied to the object instances, according to the following conditions:

· If a resource style has not been applied, this field is empty.

· If the selected objects have different styles, a "!=" button is displayed to the left of the Style text input field.

· If each instance uses a different Style, all the Styles cannot be displayed in this field. Click on the "!=" button to display the Multiple Header Editor for a list of widget instance names currently selected in the Instance column, and each associated resource style in the Value column. See Styles for more detailed information about resource styles.

The value specified in Style is set in the appropriate resource in the objects which compose the class instances in your interface. Such a value might be overridden in the class instance, depending on its resource setting.

Resource Settings

The option menu to the far right of each resource text field enables you to change the resource setting for each resource. The following table list and describes the available resource settings:

Resource 

Description

None

Resets the resource value to the default.

Code

The resource value is hard-coded and cannot be overridden by the application defaults or the X Resource Database.

App

This Resource Setting is not applicable for Java.

The resource value is written to a defaults file and can be 
overridden by the X Resource Database.

Const

The resource takes a constant as its value. Selecting this 
setting displays a list in which every existing constant of the appropriate type is displayed. The value is hard-coded and cannot be overridden by the application defaults. Selecting "New" displays the Constant Editor with a new constant

"New" is not available for pixmap constants.

Ident

The resource takes an identifier, chosen from a displayed combination box, as its value. The value is hard-coded and cannot be overridden by the application defaults. Selecting "New" displays the Identifier Editor with a new constant.

Expr

The resource takes an expression as its value. The value is hard-coded and cannot be overridden by the application defaults. See Expressions for more information.

Style

The resource is one of a set of resources in the style that has been applied to the widget. Unless the resource has been set with a style, this option is not present on the option menu.

Expose

For some resources in Java and ViewKit, the expose option is insensitive

You can view and modify a widget instance's resource when the Resource Editor is updated for the class instance in Instances View. This resource can be used in conjunction with any other setting except None and Style.

When you set a resource value either directly or through an extended editor (see Extended Editors ), the app-defaults value is set to the appropriate resource type as set on the Default Resource Placement dialog. For further details, refer to the section Default Resource Placement (Ctrl + M) .

 

Documentation: