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
DwtCSTextSetMaxLength(3Dwt) DwtCSTextSetMaxLength(3Dwt) Name DwtCSTextSetMaxLength - Sets the maximum allowable length of the text in the compound-string text widget. Syntax void DwtCSTextSetMaxLength(widget, max_length) Widget widget; int max_length; Arguments widget Specifies the ID of the compound-string text widget. max_length Specifies the maximum length, in characters, of the text in the compound string text widget. This argument sets the DwtN- maxLength attribute associated with DwtCSTextCreate. Description The DwtCSTextSetMaxLength function sets the maximum allowable length of the text in the compound-string text widget and prevents the user from entering text longer than this limit. See Also DwtCSText(3Dwt), DwtCSTextCreate(3Dwt), DwtCSTextReplace(3Dwt), DwtCSTextSetString(3Dwt), DwtCSTextGetEditable(3Dwt), DwtCSTextSetEd- itable(3Dwt), DwtCSTextGetMaxLength(3Dwt), DwtCSTextSetSelection(3Dwt), DwtCSTextGetSelection(3Dwt) Guide to the XUI Toolkit: C Language Binding Guide to the XUI Toolkit Intrinsics: C Language Binding DwtCSTextSetMaxLength(3Dwt)