Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

DwtCSTextSetSelection(3Dwt)

Name

DwtCSTextSetSelection − Highlights the specified text in the compound-string text widget and makes it the current global selection. 

Syntax

void DwtCSTextSetSelection(widget, first, last, time)
     Widget widget;
     int first, last;
     Time time;

Arguments

widgetSpecifies the ID of the compound-string text widget. 

firstSpecifies the first character position of the selected compound-string text. 

lastSpecifies the last character position of the selected compound-string text. 

timeSpecifies the time of the event that led to the call to XSetSelectionOwner.  You can pass either a timestamp or CurrentTime.  Whenever possible, however, use the timestamp of the event leading to the call. 

Description

The DwtCSTextSetSelection function makes the specified text in the compound-string text widget the current global selection and highlights it in the compound-string text widget.  Within the text window, first marks the first character position and last marks the last position.  The field characters start at 0 and increase sequentially. 

See Also

DwtCSText (3Dwt), DwtCSTextCreate (3Dwt), DwtCSTextReplace (3Dwt), DwtCSTextGetString (3Dwt), DwtCSTextSetString (3Dwt), DwtCSTextGetEditable (3Dwt), DwtCSTextSetEditable (3Dwt), DwtCSTextGetMaxLength (3Dwt), DwtCSTextSetMaxLength (3Dwt), DwtCSTextGetSelection (3Dwt)
Guide to the XUI Toolkit: C Language Binding
Guide to the XUI Toolkit Intrinsics: C Language Binding

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