1XmTextFieldSetMaxLength(library call) XmTextFieldSetMaxLength(library call)
2
3
4
6 XmTextFieldSetMaxLength — A TextField function that sets the value of
7 the current maximum allowable length of a text string entered from the
8 keyboard
9
11 #include <Xm/TextF.h>
12 void XmTextFieldSetMaxLength(
13 Widget widget,
14 int max_length);
15
17 XmTextFieldSetMaxLength sets the value of the current maximum allowable
18 length of the text string in the TextField widget. The maximum allow‐
19 able length prevents the user from entering a text string from the key‐
20 board that is larger than this limit. Strings that are entered using
21 the XmNvalue (or XmNvalueWcs) resource, or the XmTextFieldSetString (or
22 XmTextFieldSetStringWcs) function ignore this resource.
23
24 widget Specifies the TextField widget ID
25
26 max_length
27 Specifies the maximum allowable length of the text string
28
29 For a complete definition of TextField and its associated resources,
30 see XmTextField(3).
31
33 XmText(3), XmTextFieldSetString(3), and XmTextFieldSetStringWcs(3).
34
35
36
37 XmTextFieldSetMaxLength(library call)