# Scale resource panel

The Scale resource panel is used to set the resources of Scale widgets.

The panel is laid out in logical pages due to the number of resources which can be set. Select the page you require from the option menu at the top.

The Display page contains resources which affect the visual appearance of the widget. Minimum and Maximum resources are used to bound the values which the Scale widget represents. You can set a title for the Scale widget either by typing in the value directly, or by pressing on the Title resource button to the left, which displays the XmString (Compound String) Editor. Similarly, you can specify a font directly, or display a Font Selector dialog by clicking on the resource button.

The Settings page contains various scalar values resources: specify the values you require by using the option menus provided. Be warned that Motif makes some assumptions about Orientation and Direction combinations and may decide to take the direction of any specified Font into account when positioning your Scale and Scale Title. You are strongly advised to consult your OSF/Motif Programming Reference manual.

The Callbacks page allows you to associate user interface events with procedures in your application. Click on the relevant callback button and the Callbacks panel will be displayed.

NOTES

You can add children to the Scale widget in order to provide additional functionality. In particular, consider adding labels which represent "tick marks" or incremental positions on the scale.

If you cannot find the resource you want to set in this resource panel, try in the Core Resources Panel (selected from the Widget menu at the top of the WorkShop Visual Window).

See also:

- Scale widget
- Resource Panels
- Callbacks panel
- XmString Editor
- Font Selector dialog
- About WorkShop Visual