Athena Widget Set - C Language Interface - X Consortium ... - X.Org
Athena Widget Set - C Language Interface - X Consortium ... - X.Org
Athena Widget Set - C Language Interface - X Consortium ... - X.Org
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Text <strong>Widget</strong>shas international set to false this field must beXawFmt8Bit. When the associated widget has internationalset to true this field must be either XawFmt8Bitor XawFmtWide.NoteSelecting TextNote: Previous versions of Xaw used FMT8BIT , which has been retainedfor backwards compatibility. FMT8BIT is deprecated and will eventually beremoved from the implementation.To select a piece of text, use XawText<strong>Set</strong>Selection :void XawText<strong>Set</strong>Selection( w, right);wleftrightSpecifies the Text widget.Specifies the character position at which the selection begins.Specifies the character position at which the selection ends.See section 5.4 for a description of XawTextPosition. If redisplay is enabled, thisfunction highlights the text and makes it the PRIMARY selection. This function doesnot have any effect on CUT_BUFFER0.Unhighlighting TextTo unhighlight previously highlighted text in a widget, use XawTextUnsetSelection:void XawTextUnsetSelection( w);wSpecifies the Text widget.Getting Current Text SelectionTo retrieve the text that has been selected by this text widget use XawTextGetSelectionPos:void XawTextGetSelectionPos( w, *end_return);wbegin_returnend_returnSpecifies the Text widget.Returns the beginning of the text selection.Returns the end of the text selection.See section 5.4 for a description of XawTextPosition. If the returned values areequal, no text is currently selected.Replacing TextTo modify the text in an editable Text widget use XawTextReplace:77