
resources to configure the editing style of the widget, as well as callback resources that allow text verification. The
widget can be configured as a multiline text entry area or as a single−line data entry field. The TextField widget class
is available as a somewhat lighter−weight text entry area. The TextField widget is limited to a single−line, but in all
other respects there is little difference between the two classes. In Motif 1.2, instances of the Text and TextField
widgets are automatically registered as drag sources and drop sites for drag and drop operations by the toolkit.
The Text and TextField widgets can be used in many different ways to support the text entry requirements of an
application. The two widgets are described in detail in Chapter 14, Text Widgets. the figure shows an application that
uses various forms of the Text widget.
Text and TextField widgets
4.2.2 Gadgets
Another set of application controls is provided in the form of gadgets. There are gadgets that are equivalent to many of
the primitive widgets: LabelGadgets, SeparatorGadgets, PushButtonGadgets, CascadeButtonGadgets,
ToggleButtonGadgets, and ArrowButtonGadgets. The appearance and behavior of the gadgets is mostly identical to
that of the corresponding widgets. A further understanding of how gadgets work depends on an understanding of the
manager widgets that support them, so we are going to return to this topic ...