Label resource panel

The Label resource panel is used to set resources for Label, Push Button, Toggle Button, Drawn Button and Cascade Button widgets.

Since there is a large number of resources which can be set for a label widget, the Label resource panel is laid out in pages. At the top of the panel is an option menu for selecting between the logical pages.

The Display page contains resources which affect the appearance of the widget: these are mostly pixmap, font, color and label string resources.

The Keyboard page contains resources which are only applicable in certain circumstances, for example, when the label is in fact a button widget. The Keyboard resources allow you to specify the means of activating the widget without recourse to the mouse.

The Margins page allows you to specify the widths and heights of various kinds of spacing around the label widget.

The Settings page contains various boolean and scalar valued resources, for example, whether the label is represented by a string, or a pixmap.

The Callbacks page is only applicable in certain contexts, again usually associated with the fact that the widget in question is a button of some kind. Click on the callback button of the required type to display a Callback panel.

For the fonts and pixmaps in the label resource panel, you can type the font or pixmap names in directly, or click on the buttons on the left to display the Font or Pixmap Selector dialog.

XmString resources (the label string for example) can either be typed in directly, or you can click on the resource button to use the XmString Editor. Do this if you require a multi-font string or a compound string with a specified direction.

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

NOTES

If you specify the pixmap for a label, the pixmap will not be displayed on the label unless you also change the label type to be "Pixmap". The label Type resource is found on the settings page.

See also: