DwtSTextGetSelection(3Dwt)
Name
DwtSTextGetSelection − Retrieves the global selection, if any, currently highlighted in the simple text widget.
Syntax
char *DwtSTextGetSelection(widget)
Widget widget;
Arguments
widgetSpecifies the widget ID.
Description
The DwtSTextGetSelection function retrieves the text currently highlighted (selected) in the simple 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 string by calling XtFree.
Return Value
This function returns the text currently highlighted on the screen.
See Also
DwtSText (3Dwt), DwtSTextGetString (3Dwt), DwtSTextSetEditable (3Dwt), DwtSTextGetMaxLength (3Dwt), DwtSTextGetMaxLength (3Dwt), DwtSTextSetSelection (3Dwt), DwtSTextClearSelection (3Dwt)
Guide to the XUI Toolkit: C Language Binding
Guide to the XUI Toolkit Intrinsics: C Language Binding