<!-- $XConsortium: TxtFieAY.sgm /main/8 1996/09/08 21:15:07 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.MAN498.rsml.1">
<RefMeta>
<RefEntryTitle>XmTextFieldReplaceWcs</RefEntryTitle>
<ManVolNum>library call</ManVolNum>
</RefMeta>
<RefNameDiv>
<RefName><Function>XmTextFieldReplaceWcs</Function></RefName>
<RefPurpose>A TextField function that replaces part of a
wide character string in a TextField widget
<IndexTerm>
<Primary>XmTextFieldReplaceWcs</Primary>
</IndexTerm><IndexTerm>
<Primary>TextField functions</Primary>
<Secondary>XmTextFieldReplaceWcs</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>XmTextFieldReplaceWcs</Function></FuncDef>
<!--<ParamDef><Replaceable>widget, from_pos, to_pos, wcstring</Replaceable></ParamDef>-->
<ParamDef>Widget <Parameter>widget</Parameter></ParamDef>
<ParamDef>XmTextPosition <Parameter>from_pos</Parameter></ParamDef>
<ParamDef>XmTextPosition <Parameter>to_pos</Parameter></ParamDef>
<ParamDef>wchar_t *<Parameter>wcstring</Parameter></ParamDef>
</FuncSynopsis>
</RefSynopsisDiv>
<RefSect1>
<Title>DESCRIPTION</Title>
<Para><Function>XmTextFieldReplaceWcs</Function> replaces part of the wide character string
in the TextField widget. The character positions begin at 0 (zero) and are
numbered sequentially from the beginning of the text.
</Para>
<Para>An example text replacement would be to replace
the second and third characters in the text string. To accomplish this,
the parameter <Symbol Role="Variable">from_pos</Symbol> must be 1 and <Symbol Role="Variable">to_pos</Symbol> must be 3. To
insert a string after the fourth character, both parameters,
<Symbol Role="Variable">from_pos</Symbol> and <Symbol Role="Variable">to_pos</Symbol>, 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">from_pos</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">from_pos</Symbol></Term>
<ListItem>
<Para>Specifies the start position of the text to be replaced
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">to_pos</Symbol></Term>
<ListItem>
<Para>Specifies the end position of the text to be replaced
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">wcstring</Symbol></Term>
<ListItem>
<Para>Specifies the wide character string value to be added to the TextField 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.XmTextFieldReplace;.
</Para>
</RefSect1>
</RefEntry>
<!--fickle 1.09 7/2/95-->
