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
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Text <strong>Widget</strong>svoid XawTextInvalidate( w, to);wfromtoSpecifies the Text widget.Specifies the start of the text to redisplay.Specifies the end of the text to redisplay.See section 5.4 for a description of XawTextPosition. The XawTextInvalidatefunction causes the specified range of characters to be redisplayed immediately ifredisplay is enabled or the next time that redisplay is enabled.To enable redisplay, use XawTextEnableRedisplay:void XawTextEnableRedisplay( w);wSpecifies the Text widget.The XawTextEnableRedisplay function flushes any changes due to batched updateswhen XawTextDisableRedisplay was called and allows future changes tobe reflected immediately.To disable redisplay while making several changes, use XawTextDisableRedisplay.void XawTextDisableRedisplay( w);wSpecifies the Text widget.The XawTextDisableRedisplay function causes all changes to be batched untileither XawTextDisplay or XawTextEnableRedisplay is called.To display batched updates, use XawTextDisplay:void XawTextDisplay( w);wSpecifies the Text widget.The XawTextDisplay function forces any accumulated updates to be displayed.Resources Convenience RoutinesTo obtain the character position of the left-most character on the first line displayedin the widget (the value of the displayPosition resource), use XawTextTopPosition.XawTextPosition XawTextTopPosition( w);wSpecifies the Text widget.To assign a new selection array to a text widget use XawText<strong>Set</strong>SelectionArray:void XawText<strong>Set</strong>SelectionArray( w, sarray);wsarraySpecifies the Text widget.Specifies a selection array as defined in the section called\fBText Selections for Application Programmers\fP.79