Tree Window

The tree window shows the logical hierarchy of widgets and their child-widgets. For example you can see a panel as a tree's node and the widgets on it as child nodes.

Figure 5.2. The Tree Window

The Tree Window


You can show or hide the tree window by the menu item View/Show Tree.

Usually a frame or a panel contains a sizer, so you often see a sort of panel-sizer-widgets structure. The tree gets more complex when you nest sizers within sizers.

You open the Design Window with double-clicking to the top-level widget first. In the next step you can navigate the visual presentation of your widget tree by mouse, expand and collapse sizers, and copy, cut or remove widgets.

A click on an icon in the tree window displays the properties of the corresponding element in the Properties window. A double click in a frame, dialog or panel icon makes the designer window show it as it appears. Clicking with the right button of the mouse gives you a pop-up menu.

Figure 5.3. The menu for a widget

The menu for a widget


Figure 5.4. The menu for a sizer

The menu for a sizer


The pop-up menu for a widget allows you to copy, cut or remove the element. The pop-up menu for a sizer allows you to copy, cut or remove the element, or add or insert an empty slot.

Note

Often when you add an empty slot, you have to make the designer window larger, to show the new slot.