<!-- $XConsortium: LstSetAd.sgm /main/8 1996/09/08 20:52:16 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.MAN310.rsml.1">
<RefMeta>
<RefEntryTitle>XmListSetAddMode</RefEntryTitle>
<ManVolNum>library call</ManVolNum>
</RefMeta>
<RefNameDiv>
<RefName><Function>XmListSetAddMode</Function></RefName>
<RefPurpose>A List function that sets add mode in the list
<IndexTerm>
<Primary>XmListSetAddMode</Primary>
</IndexTerm><IndexTerm>
<Primary>List functions</Primary>
<Secondary>XmListSetAddMode</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-->
<!-- **-->
<!-- **-->
<RefSynopsisDiv>
<FuncSynopsis>
<FuncSynopsisInfo>#include &lt;Xm/List.h>
</FuncSynopsisInfo>
<FuncDef>void <Function>XmListSetAddMode</Function></FuncDef>
<!--<ParamDef><Replaceable>widget, state</Replaceable></ParamDef>-->
<ParamDef>Widget <Parameter>widget</Parameter></ParamDef>
<ParamDef>Boolean <Parameter>state</Parameter></ParamDef>
</FuncSynopsis>
</RefSynopsisDiv>
<RefSect1>
<Title>DESCRIPTION</Title>
<Para><Function>XmListSetAddMode</Function> allows applications
control over Add Mode in the extended selection model.
This function ensures that the mode it sets is compatible with the
selection policy (<SystemItem Class="Resource">XmNselectionPolicy</SystemItem>) of the widget. For
example, it cannot put the widget into add mode when the value of
<SystemItem Class="Resource">XmNselectionPolicy</SystemItem> is <SystemItem Class="Constant">XmBROWSE_SELECT</SystemItem>.
</Para>
<VariableList>
<VarListEntry>
<Term><Symbol Role="Variable">widget</Symbol></Term>
<ListItem>
<Para>Specifies the ID of the List widget
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">state</Symbol></Term>
<ListItem>
<Para>Specifies whether to activate or deactivate Add Mode.
If <Symbol Role="Variable">state</Symbol>
is True, Add Mode is activated. If <Symbol Role="Variable">state</Symbol> is
False, Add Mode is deactivated.
</Para>
</ListItem>
</VarListEntry>
</VariableList>
<Para>For a complete definition of List and its associated resources, see
&cdeman.XmList;.
</Para>
</RefSect1>
<RefSect1>
<Title>RELATED</Title>
<Para>&cdeman.XmList;.
</Para>
</RefSect1>
</RefEntry>
<!--fickle 1.09 7/2/95-->
