<!-- $XConsortium: TxtFieAR.sgm /main/8 1996/09/08 21:14:21 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.MAN491.rsml.1">
<RefMeta>
<RefEntryTitle>XmTextFieldInsert</RefEntryTitle>
<ManVolNum>library call</ManVolNum>
</RefMeta>
<RefNameDiv>
<RefName><Function>XmTextFieldInsert</Function></RefName>
<RefPurpose>A TextField function that inserts a character string into a text string
<IndexTerm>
<Primary>XmTextFieldInsert</Primary>
</IndexTerm><IndexTerm>
<Primary>TextField functions</Primary>
<Secondary>XmTextFieldInsert</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>XmTextFieldInsert</Function></FuncDef>
<!--<ParamDef><Replaceable>widget, position, value</Replaceable></ParamDef>-->
<ParamDef>Widget <Parameter>widget</Parameter></ParamDef>
<ParamDef>XmTextPosition <Parameter>position</Parameter></ParamDef>
<ParamDef>char <Parameter>* value</Parameter></ParamDef>
</FuncSynopsis>
</RefSynopsisDiv>
<RefSect1>
<Title>DESCRIPTION</Title>
<Para><Function>XmTextFieldInsert</Function> inserts a character string into the text string in
the TextField widget. The character positions begin at 0 (zero)
and are numbered
sequentially from the beginning of the text. For example, to insert a
string after the fourth character,
the <Symbol Role="Variable">position</Symbol> parameter must be 4.
</Para>
<Para>This routine calls the widget's <SystemItem Class="Resource">XmNvalueChangedCallback</SystemItem> and
verification callbacks, either <SystemItem Class="Resource">XmNmodifyVerifyCallback</SystemItem> or
<SystemItem Class="Resource">XmNmodifyVerifyCallbackWcs</SystemItem>, or both. If both verification
callback lists are registered, the procedures of the
<SystemItem Class="Resource">XmNmodifyVerifyCallback</SystemItem> list are executed first and the resulting
data is passed to the <SystemItem Class="Resource">XmNmodifyVerifyCallbackWcs</SystemItem> callbacks.
If the <SystemItem Class="Resource">XmNcursorPosition</SystemItem> resource is greater than or is the same value as
<Symbol Role="Variable">position</Symbol>, the <SystemItem Class="Resource">XmNmotionVerifyCallback</SystemItem> is called.
</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">position</Symbol></Term>
<ListItem>
<Para>Specifies the position in the text string where the character string is
to be inserted
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">value</Symbol></Term>
<ListItem>
<Para>Specifies the character string value to be added to the text widget
</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.XmTextField; and &cdeman.XmTextFieldInsertWcs;.
</Para>
</RefSect1>
</RefEntry>
<!--fickle 1.09 7/2/95-->
