12.07.2015 Views

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

SHOW MORE
SHOW LESS

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>skill-to-end-of-paragraph()Miscellaneous Actionsredraw-display()insert-file([filename])insert-char()insert-string(string[,string,...])display-caret(state,when)This action deletes everything between the currentinsert point location and the next paragraph boundary,and stuffs the deleted text into the kill buffer(CUT_BUFFER_1).This action recomputes the location of all the textlines on the display, scrolls the text to vertically centerthe line containing the insert point on the screen,clears the entire screen, and redisplays it.This action activates the insert file popup. The filenameoption specifies the default filename to put inthe filename buffer of the popup. If no filename isspecified the buffer is empty at startup.This action may only be attached to a key event.When the international resource is false, this actioncalls XLookupString to translate the event intoa (rebindable) Latin-1 character (sequence) and insertsit into the text at the insert point. When the internationalresource is true, characters are passedto the input method via XwcLookupString, and anycommitted string returned is inserted into the text atthe insert point.This action inserts each string into the text at theinsert point location. Any string beginning with thecharacters "0x" followed by an even number of hexadecimaldigits is interpreted as a hexadecimal constantand the corresponding string is inserted instead.This hexadecimal string may represent upto 50 8-bit characters. When theinternational resourceis true, a hexadecimal string is intrepeted asbeing in a multi-byte encoding, and a hexadecimal orregular string will result in an error message if it isnot legal in the current locale.This action allows the insert point to be turned on andoff. The state argument specifies the desired state ofthe insert point. This value may be any of the stringvalues accepted for Boolean resources (e.g. on, True,off, False, etc.). If no arguments are specified, thedefault value is True. The when argument specifies,for EnterNotify or LeaveNotify events whether ornot the focus field in the event is to be examined.If the second argument is not specified, or specifiedas something other than always then if the action isbound to an EnterNotify or LeaveNotify event, theaction will be taken only if the focus field is True. Anaugmented binding that might be useful is:72

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!