1XmCreateScrolledText(library call)          XmCreateScrolledText(library call)
2
3
4

NAME

6       XmCreateScrolledText — The Text ScrolledText convenience creation func‐
7       tion
8

SYNOPSIS

10       #include <Xm/Text.h>
11       Widget XmCreateScrolledText(
12       Widget parent,
13       String name,
14       ArgList arglist,
15       Cardinal argcount);
16

DESCRIPTION

18       XmCreateScrolledText creates an instance of a Text widget that is  con‐
19       tained  within  a ScrolledWindow.  The ScrolledWindow parent is created
20       managed.  All ScrolledWindow subarea widgets are automatically  created
21       by this function.  The ID returned by this function is that of the Text
22       widget (not the ScrolledWindow widget).  Use this  widget  ID  for  all
23       operations  on the Text widget.  Use the widget ID of the Text widget's
24       parent for all operations on the ScrolledWindow.  To obtain the  ID  of
25       the  ScrolledWindow  widget associated with the Text widget, use the Xt
26       Intrinsics XtParent function.  The name of the  ScrolledWindow  created
27       by this function is formed by concatenating the letters SW onto the end
28       of the name specified in the parameter list.
29
30       The Text widget  defaults  to  single-line  text  edit;  therefore,  no
31       ScrollBars  are displayed. The Text resource XmNeditMode must be set to
32       XmMULTI_LINE_EDIT to display the ScrollBars.  The results of placing  a
33       Text widget inside a ScrolledWindow when the Text's XmNeditMode is XmS‐
34       INGLE_LINE_EDIT are undefined.
35
36       All arguments to either the Text or the ScrolledWindow  widget  can  be
37       specified  at  creation  time  with  this function.  Changes to initial
38       position and size are sent only to the  ScrolledWindow  widget.   Other
39       resources  are  sent to the Text or the ScrolledWindow widget as appro‐
40       priate.  Note that  the  result  of  providing  the  XmNdestroyCallback
41       resource in the creation arglist is unspecified. The application should
42       use the XtAddCallback function to add callbacks to the appropriate wid‐
43       get (Text or ScrolledWindow) after creating it.
44
45       This  function  forces  the following initial values for ScrolledWindow
46       resources:
47
48          ·  XmNscrollingPolicy is set to XmAPPLICATION_DEFINED.
49
50          ·  XmNvisualPolicy is set to XmVARIABLE.
51
52          ·  XmNscrollBarDisplayPolicy is set to XmSTATIC.
53
54          ·  XmNshadowThickness is set to 0 (zero).
55
56       parent    Specifies the parent widget ID
57
58       name      Specifies the name of the created widget
59
60       arglist   Specifies the argument list
61
62       argcount  Specifies the number of attribute/value pairs in the argument
63                 list (arglist)
64
65       For  a  complete  definition  of Text and its associated resources, see
66       XmText(3).
67

RETURN

69       Returns the Text widget ID.
70
72       XmScrolledWindow(3) and XmText(3).
73
74
75
76                                            XmCreateScrolledText(library call)
Impressum