# Resource Panels

Resource panels let you set the resources of the currently selected widget.

Some resource panels have many sections or pages. You can switch between sections using the Option button at the top left of the panel.

Resources which are not relevant to the currently selected widget are made insensitive and appear greyed out. Thus in WorkShop Visual you cannot set a resource which is inapplicable to a particular widget.

When in Microsoft Windows mode, resources which are not mapped through to Microsoft Windows are colored pink. The color can be changed in the application resource file. You may still set these resources but they will only take effect on Motif.

Next to each resource there is a toggle button which controls whether individual resources are included in the output when generating code. Whether code is generated for the resource depends on the setting of the toggle, as well as the values of various toggles in the Generate dialog itself. This is covered in greater detail in the help topic for the code generation dialog.

Some resources are common to many widget classes and are set using the Core resource panel rather than using widget-specific resource panels. Background color is an example of such a Core resource.

Default Values

If the resource has not been explicitly set, the current value is shown in parentheses. Once a value has been given to a resource, it can be reset to the default by deleting the current value. WorkShop Visual shows this by again showing a value in parenthesis.

The value in a resource field is that currently used by or assigned to that widget. Default resources are not output when generating source.

Selector Panels

Selector Panels are available for many resources within the widget resource panel. If the resource name is shown in a button, you can click on the button to display a selector panel for the resource type. Selector panels are provided for pixmap, color and font resources.

NOTES

Explicitly typing a resource value in parenthesis is invalid: the value has to be deleted in order to revert the value back to the default.

See also:

- Core Resources panel
- Callbacks
- Layout Editor
- Font Selector dialog
- Pixmap Selector dialog
- Color Selector dialog
- Generate dialog
- Microsoft Windows Mode
- About WorkShop Visual