|
Packit |
b099d7 |
'\" t
|
|
Packit |
b099d7 |
...\" TxtReplA.sgm /main/8 1996/09/08 21:19: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 "XmTextReplace" "library call"
|
|
Packit |
b099d7 |
.SH "NAME"
|
|
Packit |
b099d7 |
\fBXmTextReplace\fP \(em A Text function that replaces part of a text string
|
|
Packit |
b099d7 |
.iX "XmTextReplace"
|
|
Packit |
b099d7 |
.iX "Text functions" "XmTextReplace"
|
|
Packit |
b099d7 |
.SH "SYNOPSIS"
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
.nf
|
|
Packit |
b099d7 |
#include <Xm/Text\&.h>
|
|
Packit |
b099d7 |
\fBvoid \fBXmTextReplace\fP\fR(
|
|
Packit |
b099d7 |
\fBWidget \fBwidget\fR\fR,
|
|
Packit |
b099d7 |
\fBXmTextPosition \fBfrom_pos\fR\fR,
|
|
Packit |
b099d7 |
\fBXmTextPosition \fBto_pos\fR\fR,
|
|
Packit |
b099d7 |
\fBchar \fB* value\fR\fR);
|
|
Packit |
b099d7 |
.fi
|
|
Packit |
b099d7 |
.SH "DESCRIPTION"
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
\fBXmTextReplace\fP replaces part of the text string in the Text widget\&. The
|
|
Packit |
b099d7 |
character positions begin at 0 (zero) and are numbered sequentially from the
|
|
Packit |
b099d7 |
beginning of the text\&.
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
An example text replacement would be to replace
|
|
Packit |
b099d7 |
the second and third characters in the text string\&. To accomplish this,
|
|
Packit |
b099d7 |
the parameter \fIfrom_pos\fP must be 1 and \fIto_pos\fP must be 3\&. To
|
|
Packit |
b099d7 |
insert a string after the fourth character, both parameters, \fIfrom_pos\fP
|
|
Packit |
b099d7 |
and \fIto_pos\fP, must be 4\&.
|
|
Packit |
b099d7 |
.PP
|
|
Packit |
b099d7 |
This routine calls the widget\&'s \fBXmNvalueChangedCallback\fP and
|
|
Packit |
b099d7 |
verification callbacks, either \fBXmNmodifyVerifyCallback\fP or
|
|
Packit |
b099d7 |
\fBXmNmodifyVerifyCallbackWcs\fP, or both\&. If both verification
|
|
Packit |
b099d7 |
callback lists are registered, the procedures of the
|
|
Packit |
b099d7 |
\fBXmNmodifyVerifyCallback\fP list are executed first and the resulting
|
|
Packit |
b099d7 |
data is passed to the \fBXmNmodifyVerifyCallbackWcs\fP callbacks\&.
|
|
Packit |
b099d7 |
The \fBXmNmotionVerifyCallback\fP is generated if \fIto_pos\fP is less
|
|
Packit |
b099d7 |
than or equal to
|
|
Packit |
b099d7 |
the cursor position and the length of \fIvalue\fP is not the same as the
|
|
Packit |
b099d7 |
length of the text being replaced, or if the cursor position is between
|
|
Packit |
b099d7 |
\fIfrom_pos\fP and \fIto_pos\fP, and the distance from the cursor
|
|
Packit |
b099d7 |
position to \fIfrom_pos\fP is greater than the length of \fIvalue\fP\&.
|
|
Packit |
b099d7 |
.IP "\fIwidget\fP" 10
|
|
Packit |
b099d7 |
Specifies the Text widget ID
|
|
Packit |
b099d7 |
.IP "\fIfrom_pos\fP" 10
|
|
Packit |
b099d7 |
Specifies the start position of the text to be replaced
|
|
Packit |
b099d7 |
.IP "\fIto_pos\fP" 10
|
|
Packit |
b099d7 |
Specifies the end position of the text to be replaced
|
|
Packit |
b099d7 |
.IP "\fIvalue\fP" 10
|
|
Packit |
b099d7 |
Specifies the character string value to be added to the text widget
|
|
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) and
|
|
Packit |
b099d7 |
\fBXmTextReplaceWcs\fP(3)\&.
|
|
Packit |
b099d7 |
...\" created by instant / docbook-to-man, Sun 22 Dec 1996, 20:36
|