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>s*Text.Translations: #override \\: display-caret(on) \\n\\: display-caret(off)focus-in()focus-out()search(direction,[string])multiply(value)form-paragraph()transpose-characters()no-op([action])These actions do not currently do anything.This action activates the search popup. The directionmust be specified as either forward or backward. Thestring is optional and is used as an initial value forthe Search for: string. For further explanation of thesearch widget see the section on Text Searches.The multiply action allows the user to multiply theeffects of many of the text actions. Thus the followingaction sequence multiply(10) delete-next-word()will delete 10 words. It does not matter whetherthese actions take place in one event or many events.Using the default translations the key sequence\fIControl-u, Control-d\fP will delete 4 characters.Multiply actions can be chained, thus \fImultiply(5)multiply(5)\fP is the same as multiply(25). If thestring reset is passed to the multiply action the effectsof all previous multiplies are removed and abeep is sent to the display.This action removes all the Carriage Returns fromthe current paragraph and reinserts them so thateach line is as long as possible, while still fitting onthe current screen. Lines are broken at word boundariesif at all possible. This action currently worksonly on Text widgets that use ASCII text.This action will swap the position of the character tothe left of the insert point with the character to theright of the insert point. The insert point will then beadvanced one character.The no-op action makes no change to the text widget,and is mainly used to override translations. This actiontakes one optional argument. If this argument isRingBell then a beep is sent to the display.XawWMProtocols([wm_protocol_name]) This action is written specifically for the file insertionand the search and replace dialog boxes. Thisaction is attached to those shells by the Text widget,in order to handle ClientMessage events withthe WM_PROTOCOLS atom in the detail field. Thisaction supports WM_DELETE_WINDOW on the Textwidget popups, and may support other window managerprotocols if necessary in the future. The popupwill be dismissed if the window manager sendsa WM_DELETE_WINDOW request and there are noparameters in the action call, which is the default.73

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

Saved successfully!

Ooh no, something went wrong!