Next: Layouting widgets Up: The first steps Previous: Start

## Inserting widgets into the widget tree

The building of an application begins with the inserting of the widgets. If there exists a rough idea of the layout, the widget structure can already represent the layout of the application. This means that frames are used to structure the widgets.

Widgets are inserted into the application by selecting the widget class to insert and pressing one of the two ``insert'' buttons at the bottom of the main window of XF . It is also possible to double-click on the list item in the main XF window representing a widget class. A new widget is inserted into the current widget path (current widget) . This path can be set by double-clicking the mouse button 2 on the widget that is to become the new current widget, or by specifying it with the menubutton row showing the current widget path below the status line. The dots in this pathname contain menus that show all children of the widget on the left side of the dot.

The scale at the bottom of the main window can be used to insert a number of widgets with one inserting operation. Inserting a widget with the left button (Add with defaults) produces a widget with default settings and a default widget name. Inserting a widget with the right button (Configure and add) pops up a dialog in which certain parameters and the widget name can be specified. By clicking on the button (OK), the widget is inserted.