# Text resource panel

The Text resource panel is used to set resources for the Text and TextField widgets.

The panel is laid out in logical pages due to the number of resources which can be set for this widget. Switch between pages using the option menu at the top of the panel.

Some resources may not be available in all circumstances, depending on whether the widget is a Text or TextField widget, or part of a ScrolledText widget.

You may change between a Text and TextField widget using the toggle buttons at the top of the resource panel. In WorkShop Visual this will result in your widget being reset.

The Display page contains mainly Margin and Sizing resources. You can also specify the Font used within the Text widget, either by entering the name of a Font directly, or by clicking on the Font resource button to display the Font Selector dialog.

The Settings page contains mainly scalar resources. The most important are the Edit Mode and Editable resources, by which you can specify whether your Text widget is single or multi-line and whether the widget can be written to by the user.

The Callbacks page allows you to associate user actions within your Text widget with procedures in your application. Click on the Callback resource button of interest to display the Callbacks panel.

NOTES

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).

A TextField may only have the Edit Mode resource set to Single Line.

See also:

- Text widget
- TextField widget
- Font Selector dialog
- Resource Panels
- About WorkShop Visual