dwtcstextgetselection(3dwt) [ultrix man page]
DwtCSTextGetSelection(3Dwt) DwtCSTextGetSelection(3Dwt) Name DwtCSTextGetSelection - Retrieves the global selection, if any, currently highlighted, in the compound string text widget. Syntax DwtCompString DwtCSTextGetSelection(widget) Widget widget; Arguments widget Specifies the ID of the compound-string text widget. Description The DwtCSTextGetSelection function retrieves the text currently highlighted (selected) in the compound string text widget. It returns a NULL pointer if no text is selected in the widget. The application is responsible for freeing the storage associated with the text by calling XtFree. Return Values This function returns a pointer to the selected compound string text. See Also DwtCSText(3Dwt), DwtCSTextCreate(3Dwt), DwtCSTextReplace(3Dwt), DwtCSTextGetString(3Dwt), DwtCSTextSetString(3Dwt), DwtCSTextGetEd- itable(3Dwt), DwtCSTextSetEditable(3Dwt), DwtCSTextGetMaxLength(3Dwt), DwtCSTextSetMaxLength(3Dwt), DwtCSTextSetSelection(3Dwt), Guide to the XUI Toolkit: C Language Binding Guide to the XUI Toolkit Intrinsics: C Language Binding DwtCSTextGetSelection(3Dwt)
Check Out this Related Man Page
DwtCSTextSetSelection(3Dwt) 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 widget Specifies the ID of the compound-string text widget. first Specifies the first character position of the selected compound-string text. last Specifies the last character position of the selected compound-string text. time Specifies 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), DwtCSTextGetEd- itable(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 DwtCSTextSetSelection(3Dwt)