Query: dwtcstextreplace
OS: ultrix
Section: 3dwt
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
DwtCSTextReplace(3Dwt) DwtCSTextReplace(3Dwt) Name DwtCSTextReplace - Replaces a portion of the current text in the compound-string text widget or inserts some new text into the current text of the compound-string text widget. Syntax void DwtCSTextReplace(widget, from_pos, to_pos, value) Widget widget; int from_pos, to_pos; DwtCompString value; Arguments widget Specifies the ID of the compound-string text widget. from_pos Specifies the first character position of the compound-string text being replaced. to_pos Specifies the last character position of the compound-string text being replaced. value Specifies the text to replace part of the current text in the compound-string text widget. Description The DwtCSTextReplace function 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. See Also DwtCSText(3Dwt), DwtCSTextCreate(3Dwt), DwtCSTextSetString(3Dwt), DwtCSTextGetEditable(3Dwt), DwtCSTextSetEditable(3Dwt), DwtCS- TextGetMaxLength(3Dwt), DwtCSTextSetMaxLength(3Dwt), DwtCSTextSetSelection(3Dwt), DwtCSTextGetSelection(3Dwt) Guide to the XUI Toolkit: C Language Binding Guide to the XUI Toolkit Intrinsics: C Language Binding DwtCSTextReplace(3Dwt)