Blame doc/man/man3/XmTextSetSource.3

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