Skip to Main Content
Volume 6A: Motif Programming Manual
book

Volume 6A: Motif Programming Manual

by David Brennan, Dan Heller, Paula Ferguson
September 1993
Intermediate to advanced content levelIntermediate to advanced
1014 pages
28h 26m
English
O'Reilly Media, Inc.
Content preview from Volume 6A: Motif Programming Manual
In Motif 1.1, the text widgets used two different cursors. The I−beam was used to mark the insertion position, while a
caret (^) was used as the destination cursor when it was separate from the insertion cursor. The destination cursor
showed the last position that text was inserted, edited, or selected. Having two separate cursors was confusing for
users and programmers, so the model has been simplified for Motif 1.2 to use only the I−beam cursor.
The text widgets have predefined action routines that allow the user to perform simple editing operations such as
moving one character to the right or deleting backwards to the beginning of the line. The user can specify translations
in a resource file that modify the input behavior of the widgets. The widgets are modeless, so they are always in
text−insertion mode. In Motif 1.2, there is an action that puts the Text widget in overstrike mode, while in Motif 1.1, it
is programmatically possible to emulate such a mode using multiple action routines.
The user can use the action routines provided by the widgets to set up the translation table to mimic an editor such as
emacs. The Text widget does not insert nonprintable characters, so users typically bind control−character sequences to
editing action routines. An editor like vi cannot be emulated because there is no distinction between command mode
and text−entry mode.
15.1.2 Selecting Text
Users have become accustomed to the ability to cut and paste text between windows in GUI−based applications. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Volume 7A: XView Programming Manual

Volume 7A: XView Programming Manual

Dan Heller

Publisher Resources

ISBN: 9780596000431