Smart Layout Buttons

The following smart layout buttons have been added to the Form Layout Editor:

Smart Panel Layout

The Smart Panel Layout is a shortcut means of laying out a simple panel. This is a very common layout and is usually made up of an equal number of labels and textfields, such as you might find in a form. After adding your widgets, display the Form Editor and click on the Smart Panel Layout button. The widgets are arranged in two columns with all the appropriate attachments. If you specify an offset or position, these are taken into account when the layout and attachments are made. If some of the widgets are selected, only the selected widgets are laid out in this way, the other widgets are left as they are. Note that shift-click is used to select widgets in the layout editor. Pressing Undo restores the previous layout.

Smart ButtonBox Layout

Like the Smart Panel Layout described above, this is a shortcut means of laying out widgets in a ButtonBox style. This is for laying out Buttons horizontally with regular spacing. If no objects are selected, all the children of the Form are laid out as a ButtonBox. Otherwise, only selected objects are affected.

Absolute Positions to Attachments

Pressing the automatic attachments button converts a layout using absolute positioning to a more flexible layout using Form attachments. This is most useful in migrating a design which was created using a GUI builder which insisted on using absolute positioning. X-Designer is able to use the full power of the Form layout widget.

See also: