*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> DXmCSTextReplace (3X)              
Title
Content
Arch
Section
 

DXmCSTextReplace(3X)

Contents


NAME    [Toc]    [Back]

       DXmCSTextReplace - Replaces a specified segment of text in
       a compound string text widget.

SYNOPSIS    [Toc]    [Back]

       DXmCSTextStatus DXmCSTextReplace(
               Widget widget,
               int from_pos,
               int to_pos,
               XmString value );

PARAMETERS    [Toc]    [Back]

       The identifier (widget ID) of  the  compound  string  text
       widget.   An  integer  that represents the first character
       position of the text being replaced.  An integer that represents
  the  last  character  position  of the text being
       replaced.  Replacement text for part of the  current  text
       in  the compound string text widget, or additional text to
       be inserted into the compound string text widget.

DESCRIPTION    [Toc]    [Back]

       The DXmCSTextReplace routine replaces part of the text  in
       the compound string text widget.  Within the widget, positions
 are numbered starting at 0  and  increasing  sequentially.
   For  example,  to  replace  the second and third
       characters in the text, from_pos should be  1  and  to_pos
       should  be  3.  To insert text after the fourth character,
       from_pos and to_pos should both be 4.

RETURN VALUES    [Toc]    [Back]

       A value that represents the status (success or failure) of
       the replace operation, as follows:

       --------------------------------------------------------
       Value                      Description
       --------------------------------------------------------
       DXmCSTextStatusEditDone    Text replaced successfully.
       DXmCSTextStatusEditError   Text not replaced (failure).
       --------------------------------------------------------

SEE ALSO    [Toc]    [Back]

      
      
       DXmCreateCSText(3X), DXmCSTextSetString(3X), DXmCSTextGetString(3X)



                                             DXmCSTextReplace(3X)
[ Back ]
 Similar pages
Name OS Title
DXmCSTextSetString Tru64 Replaces all the text in the compound string text widget with new text.
XmTextReplaceWcs HP-UX A Text function that replaces part of a wide character string in a Text widget
XmTextReplaceWcs IRIX A Text function that replaces part of a wide character string in a Text widget
XmTextReplaceWcs Tru64 A Text function that replaces part of a wide character string in a Text widget
XmStringGetLtoR HP-UX A compound string function that searches for a text segment in the input compound string
XmStringGetLtoR IRIX A compound string function that searches for a text segment in the input compound string
XmStringGetLtoR Tru64 A compound string function that searches for a text segment in the input compound string
DXmCSTextSetMaxLength Tru64 Sets the maximum allowable length of the text in the compound string text widget.
DXmCSTextGetMaxLength Tru64 Retrieves (returns) current maximum allowable length of the text in the compound string text widget.
DXmCSTextGetEditable Tru64 Indicates whether the text in the compound string text widget can be edited by the user.
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service