DwtSTextSetSelection(3Dwt)
Name
DwtSTextSetSelection − Makes the specified text in the simple text widget the current global selection and highlights it in the simple text widget.
Syntax
void DwtSTextSetSelection(widget, first, last, time)
Widget widget;
int first, last;
Time time;
Arguments
widgetSpecifies the widget ID.
firstSpecifies the first character position of the selected string.
lastSpecifies the last character position of the selected string.
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 DwtSTextSetSelection function makes the specified text in the simple text widget the current global selection and highlights it in the simple text widget. Within the text window, first marks the first character position and last marks the last position. The field characters are numbered in sequence starting at 0.
See Also
DwtSText (3Dwt), DwtSTextGetString (3Dwt), DwtSTextSetEditable (3Dwt), DwtSTextGetMaxLength (3Dwt), DwtSTextGetMaxLength (3Dwt), DwtSTextGetSelection (3Dwt), DwtSTextClearSelection (3Dwt)
Guide to the XUI Toolkit: C Language Binding
Guide to the XUI Toolkit Intrinsics: C Language Binding