'\" t .\" TxtSetSB.sgm /main/8 1996/09/08 21:20:09 rws $ .de P! .fl \!!1 setgray .fl \\&.\" .fl \!!0 setgray .fl \" force out current output buffer \!!save /psv exch def currentpoint translate 0 0 moveto \!!/showpage{}def .fl \" prolog .sy sed -e 's/^/!/' \\$1\" bring in postscript file \!!psv restore . .de pF .ie \\*(f1 .ds f1 \\n(.f .el .ie \\*(f2 .ds f2 \\n(.f .el .ie \\*(f3 .ds f3 \\n(.f .el .ie \\*(f4 .ds f4 \\n(.f .el .tm ? font overflow .ft \\$1 .. .de fP .ie !\\*(f4 \{\ . ft \\*(f4 . ds f4\" ' br \} .el .ie !\\*(f3 \{\ . ft \\*(f3 . ds f3\" ' br \} .el .ie !\\*(f2 \{\ . ft \\*(f2 . ds f2\" ' br \} .el .ie !\\*(f1 \{\ . ft \\*(f1 . ds f1\" ' br \} .el .tm ? font underflow .. .ds f1\" .ds f2\" .ds f3\" .ds f4\" .ta 8n 16n 24n 32n 40n 48n 56n 64n 72n .TH "XmTextSetSource" 3 .SH "NAME" \fBXmTextSetSource\fP \(em A Text function that sets the source of the widget "XmTextSetSource" "Text functions" "XmTextSetSource" .SH "SYNOPSIS" .PP .nf #include \fBvoid \fBXmTextSetSource\fP\fR( \fBWidget \fBwidget\fR\fR, \fBXmTextSource \fBsource\fR\fR, \fBXmTextPosition \fBtop_character\fR\fR, \fBXmTextPosition \fBcursor_position\fR\fR); .fi .SH "DESCRIPTION" .PP \fBXmTextSetSource\fP sets the source of the Text widget\&. Text widgets can share sources of text so that editing in one widget is reflected in another\&. This function sets the source of one widget so that it can share the source of another widget\&. .PP Setting a new text source destroys the old text source if no other Text widgets are using that source\&. To replace a text source but keep it for later use, create an unmanaged Text widget and set its source to the text source you want to keep\&. .IP "\fIwidget\fP" 10 Specifies the Text widget ID\&. .IP "\fIsource\fP" 10 Specifies the source with which the widget displays text\&. This can be a value returned by the \fBXmTextGetSource\fP(3) function\&. If no source is specified, the widget creates a default string source\&. .IP "\fItop_character\fP" 10 Specifies the position in the text to display at the top of the widget\&. This is an integer number of characters from the beginning of the text buffer\&. The first character position is 0 (zero)\&. .IP "\fIcursor_position\fP" 10 Specifies the position in the text at which the insert cursor is located\&. This is an integer number of characters from the beginning of the text buffer\&. The first character position is 0 (zero)\&. .PP For a complete definition of Text and its associated resources, see \fBXmText\fP(3)\&. .SH "RELATED" .PP \fBXmText\fP(3)\&. .\" created by instant / docbook-to-man, Sun 22 Dec 1996, 20:36