#include <Xm/Text.h>Widget XmCreateScrolledText (parent, name, arglist, argcount) Widget parent; String name; ArgList arglist; Cardinal argcount;
The Text widget defaults to single-line text edit; therefore, no ScrollBars are displayed. The Text resource XmNeditMode must be set to XmMULTI_LINE_EDIT to display the ScrollBars. The results of placing a Text widget inside a ScrolledWindow when the Text's XmNeditMode is XmSINGLE_LINE_EDIT are undefined.
All arguments to either the Text or the ScrolledWindow widget can be specified at creation time using this function. Changes to initial position and size are sent only to the ScrolledWindow widget. Other resources are sent to the Text or the ScrolledWindow widget as appropriate.
This function forces the following initial values for ScrolledWindow resources:
To obtain the ID of the ScrolledWindow widget associated with the ScrolledText, use the Xt Intrinsics XtParent function. The name of the ScrolledWindow created by this function is formed by concatenating the letters ``SW'' onto the end of the name specified in the parameter list.
For a complete definition of Text and its associated resources, see XmText(X3mot).