6. Widget Creation

When a developer finds that the existing widgets are no longer useful, they may find the need to create new widgets. This is a common task while developing GUIs.

Tip

The ELT Control GUI Toolkit Design includes more information on how to use existing widgets.

A new widget usually falls into the following three categories.

New Widget

When a new more of display or interaction is needed, and there is not currently available widget that can meet the requirements, then a completely new widget is needed. This kind of widgets are for example, the DartBoard and the Analog Clock.

Specialize Existing Widget

If an existing widget matches closely the representation and interaction capabilities of an existing widget, it is recommended to specialize the similar widget.

Composite Widget

When developing complex UIs, it is a common task to create a widget than contains a set of widgets. This commonly represent real world concepts such as a Motor, or can be used to present several monitor points.

We include also a section that discusses topics common to all kind of widgets.