Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

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

widgetSpecifies the ID of the compound-string text widget. 

from_posSpecifies the first character position of the compound-string text being replaced. 

to_posSpecifies the last character position of the compound-string text being replaced. 

valueSpecifies 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), DwtCSTextGetMaxLength (3Dwt), DwtCSTextSetMaxLength (3Dwt), DwtCSTextSetSelection (3Dwt), DwtCSTextGetSelection (3Dwt)
Guide to the XUI Toolkit: C Language Binding
Guide to the XUI Toolkit Intrinsics: C Language Binding

Subroutines

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026