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
The reference pages for the Text and TextField widgets (in Volume Six B, Motif Reference Manual; Section 2, Motif
and Xt Widget Classes) lists the default translations for the widgets. See Volume Four, X Toolkit Intrinsics
Programming Manual, for a description of how to programmatically alter translation tables; see Volume Three, X
Window System User's Guide, for a description of how a user can customize widget translations. See Chapter 17, The
Clipboard, for a discussion of the lower−level Motif clipboard functions.
15.2 Text Widget Basics
In order to understand the complexities of the Text and TextField widgets, you need to know about some of the basic
resources and functions that they provide. This section describes the fundamentals of working with text widgets,
including how to create the widgets, how to work with the textual data, and how to control simple aspects of
appearance and behavior. Applications that wish to use the Text widget need to include the file <Xm/Text.h>.
TextField widgets require the file <Xm/TextF.h>. You can create a Text widget using
XtVaCreateManagedWidget() as usual:
Widget text_w;
text_w = XtVaCreateManagedWidget("name",
xmTextWidgetClass, parent,
resource−value−list,
NULL);
To create a TextField widget instead, specify the class as xmTextFieldWidgetClass.
15.2.1 The Textual Data
The XmNvalue resource of the Text and TextField widgets provides the most basic means of access to the internal
text storage for the widgets. Unlike the other widgets in the Motif toolkit ...
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