Gadgets

Gadgets, like widgets, are user interface components. They differ from widgets in that they do not have a window of their own. A gadget must display text or graphics in the window provided by the parent, and rely on the parent for input.

A gadget is more light-weight than a widget, and has in many cases significantly better performance than the widget counterpart. You should consider using gadgets whenever possible.

The set of resources which you can set for a gadget is restricted, however this varies with the version of the Motif toolkit; for example, in Motif 1.2 you cannot set foreground and background color because this version of the toolkit does not support coloration of gadget objects independently of their parent. In Motif 2.1, this color restriction is relaxed, although it is still true that not all Widget resources or operations can be applied.

Gadget, unlike Widget, is purely a Motif term.

See also: