DwtCSTextSetMaxLength(3Dwt)
Name
DwtCSTextSetMaxLength − Sets the maximum allowable length of the text in the compound-string text widget.
Syntax
void DwtCSTextSetMaxLength(widget, max_length)
Widget widget;
int max_length;
Arguments
widgetSpecifies the ID of the compound-string text widget.
max_lengthSpecifies the maximum length, in characters, of the text in the compound string text widget. This argument sets the DwtNmaxLength attribute associated with DwtCSTextCreate.
Description
The DwtCSTextSetMaxLength function sets the maximum allowable length of the text in the compound-string text widget and prevents the user from entering text longer than this limit.
See Also
DwtCSText (3Dwt), DwtCSTextCreate (3Dwt), DwtCSTextReplace (3Dwt), DwtCSTextSetString (3Dwt), DwtCSTextGetEditable (3Dwt), DwtCSTextSetEditable (3Dwt), DwtCSTextGetMaxLength (3Dwt), DwtCSTextSetSelection (3Dwt), DwtCSTextGetSelection (3Dwt)
Guide to the XUI Toolkit: C Language Binding
Guide to the XUI Toolkit Intrinsics: C Language Binding