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

NAME

6       XmTextSetSource — A Text function that sets the source of the widget
7

SYNOPSIS

9       #include <Xm/Text.h>
10       void XmTextSetSource(
11       Widget widget,
12       XmTextSource source,
13       XmTextPosition top_character,
14       XmTextPosition cursor_position);
15

DESCRIPTION

17       XmTextSetSource  sets  the  source of the Text widget. Text widgets can
18       share sources of text so that editing in one  widget  is  reflected  in
19       another.  This  function  sets  the source of one widget so that it can
20       share the source of another widget.
21
22       Setting a new text source destroys the old text source if no other Text
23       widgets  are  using  that source.  To replace a text source but keep it
24       for later use, create an unmanaged Text widget and set  its  source  to
25       the text source you want to keep.
26
27       widget    Specifies the Text widget ID.
28
29       source    Specifies  the  source  with  which the widget displays text.
30                 This can be a value returned by the XmTextGetSource(3)  func‐
31                 tion. If no source is specified, the widget creates a default
32                 string source.
33
34       top_character
35                 Specifies the position in the text to display at the  top  of
36                 the widget.  This is an integer number of characters from the
37                 beginning of the text buffer. The first character position is
38                 0 (zero).
39
40       cursor_position
41                 Specifies the position in the text at which the insert cursor
42                 is located. This is an integer number of characters from  the
43                 beginning of the text buffer. The first character position is
44                 0 (zero).
45
46       For a complete definition of Text and  its  associated  resources,  see
47       XmText(3).
48
50       XmText(3).
51
52
53
54                                                 XmTextSetSource(library call)
Impressum