<!-- $XConsortium: TxtFieBD.sgm /main/8 1996/09/08 21:15:38 rws $ -->
<!-- (c) Copyright 1995 Digital Equipment Corporation. -->
<!-- (c) Copyright 1995 Hewlett-Packard Company. -->
<!-- (c) Copyright 1995 International Business Machines Corp. -->
<!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
<!-- (c) Copyright 1995 Novell, Inc. -->
<!-- (c) Copyright 1995 FUJITSU LIMITED. -->
<!-- (c) Copyright 1995 Hitachi. -->

<RefEntry Id="CDEMMA.MAN503.rsml.1">
<RefMeta>
<RefEntryTitle>XmTextFieldSetMaxLength</RefEntryTitle>
<ManVolNum>library call</ManVolNum>
</RefMeta>
<RefNameDiv>
<RefName><Function>XmTextFieldSetMaxLength</Function></RefName>
<RefPurpose>A TextField function that sets the value of the current maximum allowable length of a text string entered from the keyboard
<IndexTerm>
<Primary>XmTextFieldSetMaxLength</Primary>
</IndexTerm><IndexTerm>
<Primary>TextField functions</Primary>
<Secondary>XmTextFieldSetMaxLength</Secondary>
</IndexTerm></RefPurpose>
</RefNameDiv>
<!-- -->
<!-- @OSF_COPYRIGHT@-->
<!-- COPYRIGHT NOTICE-->
<!-- Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.-->
<!-- ALL RIGHTS RESERVED (MOTIF). See the file named COPY.MOTIF.DOC for-->
<!-- the full copyright text.-->
<!-- -->
<!-- HISTORY-->
<!-- -->
<!-- **-->
<!-- **-->
<!-- **  (c) Copyright 1989, 1990, 1992 by Open Software Foundation, Inc.-->
<!-- **      All Rights Reserved.-->
<!-- **-->
<!-- **  (c) Copyright 1987, 1988, 1989, by Hewlett-Packard Company-->
<!-- **-->
<!-- **  (c) Copyright 1987, 1988 by Digital Equipment Corporation,-->
<!-- **      Maynard, MA.  All Rights Reserved.-->
<!-- **-->
<!-- **-->
<RefSynopsisDiv>
<FuncSynopsis>
<FuncSynopsisInfo>#include &lt;Xm/TextF.h>
</FuncSynopsisInfo>
<FuncDef>void <Function>XmTextFieldSetMaxLength</Function></FuncDef>
<!--<ParamDef><Replaceable>widget, max_length</Replaceable></ParamDef>-->
<ParamDef>Widget <Parameter>widget</Parameter></ParamDef>
<ParamDef>int <Parameter>max_length</Parameter></ParamDef>
</FuncSynopsis>
</RefSynopsisDiv>
<RefSect1>
<Title>DESCRIPTION</Title>
<Para><Function>XmTextFieldSetMaxLength</Function> sets the value of the current maximum allowable
length of the text string in the TextField widget. The maximum allowable length
prevents the user from entering a text string from the keyboard
that is larger than this limit.
Strings that are entered using the
<SystemItem Class="Resource">XmNvalue</SystemItem> (or <SystemItem Class="Resource">XmNvalueWcs</SystemItem>) resource, or the
<Function>XmTextFieldSetString</Function> (or <Function>XmTextFieldSetStringWcs</Function>)
function ignore this resource.
</Para>
<VariableList>
<VarListEntry>
<Term><Symbol Role="Variable">widget</Symbol></Term>
<ListItem>
<Para>Specifies the TextField widget ID
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">max_length</Symbol></Term>
<ListItem>
<Para>Specifies the maximum allowable length of the text string
</Para>
</ListItem>
</VarListEntry>
</VariableList>
<Para>For a complete definition of TextField and its associated resources, see
&cdeman.XmTextField;.
</Para>
</RefSect1>
<RefSect1>
<Title>RELATED</Title>
<Para>&cdeman.XmText;,
&cdeman.XmTextFieldSetString;, and
&cdeman.XmTextFieldSetStringWcs;.
</Para>
</RefSect1>
</RefEntry>
<!--fickle 1.09 7/2/95-->
