1XmTextFieldReplaceWcs(library call) XmTextFieldReplaceWcs(library call)
2
3
4
6 XmTextFieldReplaceWcs — A TextField function that replaces part of a
7 wide character string in a TextField widget
8
10 #include <Xm/TextF.h>
11 void XmTextFieldReplaceWcs(
12 Widget widget,
13 XmTextPosition from_pos,
14 XmTextPosition to_pos,
15 wchar_t *wcstring);
16
18 XmTextFieldReplaceWcs replaces part of the wide character string in the
19 TextField widget. The character positions begin at 0 (zero) and are
20 numbered sequentially 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 parameter
24 from_pos must be 1 and to_pos must be 3. To insert a string after the
25 fourth character, both parameters, from_pos and to_pos, must be 4.
26
27 This routine calls the widget's XmNvalueChangedCallback and verifica‐
28 tion callbacks, either XmNmodifyVerifyCallback or XmNmodifyVerifyCall‐
29 backWcs, or both. If both verification callback lists are registered,
30 the procedures of the XmNmodifyVerifyCallback list are executed first
31 and the resulting data is passed to the XmNmodifyVerifyCallbackWcs
32 callbacks. If the XmNcursorPosition resource is greater than or is the
33 same value as from_pos, the XmNmotionVerifyCallback is called.
34
35 widget Specifies the TextField widget ID
36
37 from_pos Specifies the start position of the text to be replaced
38
39 to_pos Specifies the end position of the text to be replaced
40
41 wcstring Specifies the wide character string value to be added to the
42 TextField widget
43
44 For a complete definition of TextField and its associated resources,
45 see XmTextField(3).
46
48 XmTextField(3) and XmTextFieldReplace(3).
49
50
51
52 XmTextFieldReplaceWcs(library call)