


XmTextReplaceWcs(3X)					 XmTextReplaceWcs(3X)
OSF/Motif							    OSF/Motif



NAME
  XXmmTTeexxttRReeppllaacceeWWccss - A Text function that replaces part	of a wide character
  string in a Text widget

SYNOPSIS


  ##iinncclluuddee <<XXmm//TTeexxtt..hh>>
  vvooiidd XXmmTTeexxttRReeppllaacceeWWccss	((_w_i_d_g_e_t, _f_r_o_m__p_o_s, _t_o__p_o_s, _w_c_s_t_r_i_n_g))
       WWiiddggeett	   _w_i_d_g_e_t;;
       XXmmTTeexxttPPoossiittiioonn_f_r_o_m__p_o_s;;
       XXmmTTeexxttPPoossiittiioonn_t_o__p_o_s;;
       wwcchhaarr__tt	   **_w_c_s_t_r_i_n_g;;

DESCRIPTION
  XXmmTTeexxttRReeppllaacceeWWccss replaces part of the	wide character string in the Text
  widget.  The character positions begin at zero and are numbered sequen-
  tially from the beginning of the text.

  An example text replacement would be to replace the second and third char-
  acters in the	text string.  To accomplish this, the _f_r_o_m__p_o_s parameter must
  be 1 and the _t_o__p_o_s parameter	must be	3.  To insert a	string after the
  fourth character, both the _f_r_o_m__p_o_s and _t_o__p_o_s parameters must be 4.

  This routine calls the widget's XXmmNNvvaalluueeCChhaannggeeddCCaallllbbaacckk and verification
  callbacks, either XXmmNNmmooddiiffyyVVeerriiffyyCCaallllbbaacckk or XXmmNNmmooddiiffyyVVeerriiffyyCCaallllbbaacckkWWccss, or
  both.	 If both verification callback lists are registered, the procedures
  of the XXmmNNmmooddiiffyyVVeerriiffyyCCaallllbbaacckk list are executed first and the resulting
  data is passed to the	XXmmNNmmooddiiffyyVVeerriiffyyCCaallllbbaacckkWWccss callbacks.

  _w_i_d_g_e_t    Specifies the Text widget ID

  _f_r_o_m__p_o_s  Specifies the start	position of the	text to	be replaced

  _t_o__p_o_s    Specifies the end position of the text to be replaced

  _w_c_s_t_r_i_n_g  Specifies the wide character string	value to be added to the Text
	    widget

  For a	complete definition of Text and	its associated resources, see
  XXmmTTeexxtt((33XX)).

RELATED	INFORMATION
  XXmmTTeexxtt((33XX)) and XXmmTTeexxttRReeppllaaccee((33XX)).














