<!-- $XConsortium: ImRegist.sgm /main/9 1996/09/08 20:47:59 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.MAN268.rsml.1">
<RefMeta>
<RefEntryTitle>XmImRegister</RefEntryTitle>
<ManVolNum>library call</ManVolNum>
</RefMeta>
<RefNameDiv>
<RefName><Function>XmImRegister</Function></RefName>
<RefPurpose>An input manager function that registers a widget with an input manager
<IndexTerm>
<Primary>XmImRegister</Primary>
</IndexTerm><IndexTerm>
<Primary>input manager functions</Primary>
<Secondary>XmImRegister</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 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/XmIm.h>
</FuncSynopsisInfo>
<FuncDef>void <Function>XmImRegister</Function></FuncDef>
<!--<ParamDef><Replaceable>widget, reserved</Replaceable></ParamDef>-->
<ParamDef>Widget <Parameter>widget</Parameter></ParamDef>
<ParamDef>unsigned int <Parameter>reserved</Parameter></ParamDef>
</FuncSynopsis>
</RefSynopsisDiv>
<RefSect1>
<Title>DESCRIPTION</Title>
<Para><Function>XmImRegister</Function> registers a widget with its input manager.
This adds the specified widget to a list of widgets that
are supported by the input manager for an input method.
If an input method has not been opened
by a previous call to <Function>XmImRegister</Function>, the first time this
routine is called it opens an input method using the
<SystemItem Class="Resource">XmNinputMethod</SystemItem> resource for the VendorShell. If the
<SystemItem Class="Resource">XmNinputMethod</SystemItem> is NULL, an input method is opened using the
current locale.
</Para>
<Para>If an input method cannot be opened in
the current locale, <Function>XLookupString</Function> provides input processing.
</Para>
<Para>The application is responsible for unregistering a widget by calling
<Function>XmImUnregister</Function>.
</Para>
<Para>Note that the Text, TextField, and List widgets already call the
<Function>XmImRegister</Function> function internally. You should not call this function for
these widgets before calling <Function>XmImUnregister</Function> first.
</Para>
<VariableList>
<VarListEntry>
<Term><Symbol Role="Variable">widget</Symbol></Term>
<ListItem>
<Para>Specifies the ID of the widget to be registered.
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">reserved</Symbol></Term>
<ListItem>
<Para>This argument is not used in the current release of Motif.
The value should always be 0 (zero).
</Para>
</ListItem>
</VarListEntry>
</VariableList>
</RefSect1>
<RefSect1>
<Title>RELATED</Title>
<Para>&cdeman.XmImGetXIM;,
&cdeman.XmImMbLookupString;,
and &cdeman.XmImUnregister;.
</Para>
</RefSect1>
</RefEntry>
<!--fickle 1.09 7/2/95-->
