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

NAME

6       XmTextReplaceWcs — A Text function that replaces part of a wide charac‐
7       ter string in a Text widget
8

SYNOPSIS

10       #include <Xm/Text.h>
11       void XmTextReplaceWcs(
12       Widget widget,
13       XmTextPosition from_pos,
14       XmTextPosition to_pos,
15       wchar_t *wcstring);
16

DESCRIPTION

18       XmTextReplaceWcs replaces part of the wide character string in the Text
19       widget.  The character positions begin at zero and are numbered sequen‐
20       tially from the beginning of the text.
21
22       An example text replacement would be to replace the  second  and  third
23       characters in the text string. To accomplish this, the from_pos parame‐
24       ter must be 1 and the to_pos parameter must be 3. To  insert  a  string
25       after  the  fourth  character,  both the from_pos and to_pos parameters
26       must be 4.
27
28       This routine calls the widget's XmNvalueChangedCallback  and  verifica‐
29       tion  callbacks, either XmNmodifyVerifyCallback or XmNmodifyVerifyCall‐
30       backWcs, or both. If both verification callback lists  are  registered,
31       the  procedures  of the XmNmodifyVerifyCallback list are executed first
32       and the resulting data  is  passed  to  the  XmNmodifyVerifyCallbackWcs
33       callbacks.   This  routine  calls  the widget's XmNmotionVerifyCallback
34       callback when from_pos is less than or equal to the cursor position.
35
36       widget    Specifies the Text widget ID
37
38       from_pos  Specifies the start position of the text to be replaced
39
40       to_pos    Specifies the end position of the text to be replaced
41
42       wcstring  Specifies the wide character string value to be added to  the
43                 Text widget
44
45       For  a  complete  definition  of Text and its associated resources, see
46       XmText(3).
47
49       XmText(3) and XmTextReplace(3).
50
51
52
53                                                XmTextReplaceWcs(library call)
Impressum