<!-- $XConsortium: RepTypAd.sgm /main/8 1996/09/08 20:58:09 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.MAN369.rsml.1">
<RefMeta>
<RefEntryTitle>XmRepTypeAddReverse</RefEntryTitle>
<ManVolNum>library call</ManVolNum>
</RefMeta>
<RefNameDiv>
<RefName><Function>XmRepTypeAddReverse</Function></RefName>
<RefPurpose>A representation type manager function
that installs the reverse converter for a previously registered representation type
<IndexTerm>
<Primary>XmRepTypeAddReverse</Primary>
</IndexTerm><IndexTerm>
<Primary>representation type manager functions</Primary>
<Secondary>XmRepTypeAddReverse</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/RepType.h>
</FuncSynopsisInfo>
<FuncDef>void <Function>XmRepTypeAddReverse</Function></FuncDef>
<!--<ParamDef><Replaceable>rep_type_id</Replaceable></ParamDef>-->
<ParamDef>XmRepTypeId <Parameter>rep_type_id</Parameter></ParamDef>
</FuncSynopsis>
</RefSynopsisDiv>
<RefSect1>
<Title>DESCRIPTION</Title>
<Para><Function>XmRepTypeAddReverse</Function> installs the reverse converter
for a previously registered representation type. The reverse
converter takes a numerical representation type value and returns
its corresponding string value. Certain applications may require
this capability to obtain a string value to display on a screen
or to build a resource file.
</Para>
<Para>The <Symbol Role="Variable">values</Symbol> argument of the <Function>XmRepTypeRegister</Function> function
can be used to register representation types with nonconsecutive
values or with duplicate names for the same value. If the list
of numerical values for a representation type contains duplicate values,
the reverse converter uses the first name in the <Symbol Role="Variable">value_names</Symbol>
list that matches the specified numeric value. For example, if
a <Symbol Role="Variable">value_names</Symbol> array has <Symbol Role="Variable">cancel</Symbol>, <Symbol Role="Variable">proceed</Symbol>, and
<Symbol Role="Variable">abort</Symbol>, and the corresponding
<Symbol Role="Variable">values</Symbol> array contains 0, 1, and 0, the reverse converter
will return <Symbol Role="Variable">cancel</Symbol> instead of <Symbol Role="Variable">abort</Symbol> for an
input value of 0.
</Para>
<VariableList>
<VarListEntry>
<Term><Symbol Role="Variable">rep_type_id</Symbol></Term>
<ListItem>
<Para>Specifies the identification number of the representation type
</Para>
</ListItem>
</VarListEntry>
</VariableList>
</RefSect1>
<RefSect1>
<Title>RELATED</Title>
<Para>&cdeman.XmRepTypeGetId; and
&cdeman.XmRepTypeRegister;.
</Para>
</RefSect1>
</RefEntry>
<!--fickle 1.09 7/2/95-->
