<!-- $XConsortium: ContainI.sgm /main/7 1996/08/30 14:26:29 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.MAN118.rsml.1">
<RefMeta>
<RefEntryTitle>XmContainerReorder</RefEntryTitle>
<ManVolNum>library call</ManVolNum>
</RefMeta>
<RefNameDiv>
<RefName><Function>XmContainerReorder</Function></RefName>
<RefPurpose>Container widget function to reorder children
<IndexTerm>
<Primary>XmContainerReorder</Primary>
</IndexTerm><IndexTerm>
<Primary>XmContainer</Primary>
</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 1993 by International Business Machines Corporation-->
<!-- **      All Rights Reserved.-->
<!-- **-->
<RefSynopsisDiv>
<FuncSynopsis>
<FuncSynopsisInfo>#include &lt;Xm/Container.h>
</FuncSynopsisInfo>
<FuncDef>void <Function>XmContainerReorder</Function></FuncDef>
<!--<ParamDef><Replaceable>container, widgets, num_widgets</Replaceable></ParamDef>-->
<ParamDef>Widget <Parameter>container</Parameter></ParamDef>
<ParamDef>WidgetList <Parameter>widgets</Parameter></ParamDef>
<ParamDef>int <Parameter>num_widgets</Parameter></ParamDef>
</FuncSynopsis>
</RefSynopsisDiv>
<RefSect1>
<Title>DESCRIPTION</Title>
<Para><Function>XmContainerReorder</Function> obtains the <SystemItem Class="Resource">XmNpositionIndex</SystemItem> constraint
resources of each widget specified in <Symbol Role="Variable">widgets</Symbol>, sorts them in
ascending order, and inserts the <SystemItem Class="Resource">XmNpositionIndex</SystemItem> constraint
resources in the new order into each widget.
If the <SystemItem Class="Resource">XmNlayoutType</SystemItem> resource of Container is <SystemItem Class="Constant">XmOUTLINE</SystemItem> or
<SystemItem Class="Constant">XmDETAIL</SystemItem>, <Function>XmContainerReorder</Function> will force a layout of all
items.
</Para>
<VariableList>
<VarListEntry>
<Term><Symbol Role="Variable">container</Symbol></Term>
<ListItem>
<Para>Specifies the Container widget ID.
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">widgets</Symbol></Term>
<ListItem>
<Para>Specifies an array of widget children of <Symbol Role="Variable">container</Symbol>.
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">num_widgets</Symbol></Term>
<ListItem>
<Para>Specifies the number of items in the <Symbol Role="Variable">widgets</Symbol> array.
</Para>
</ListItem>
</VarListEntry>
</VariableList>
<Para>For a complete definition of Container and its associated resources, see
&cdeman.XmContainer;.
</Para>
</RefSect1>
<RefSect1>
<Title>RELATED</Title>
<Para>&cdeman.XmContainer;.
</Para>
</RefSect1>
</RefEntry>
<!--fickle 1.09 7/2/95-->
