From 7c71ab86d1f7e387fc3df63b48df07231f111862 Mon Sep 17 00:00:00 2001
From: tpearson
In most cases form widgets should be reasonable placed and aligned. Positioning, aligning and resizing widgets by hand is not easy and these parameters are not adjusted when the user resizes the form. In fact the situation is even worse because you cannot assume a given form requires a given space because users have different font sizes and display resolutions.
5.4.9. Widget tqlayouts
+5.4.9. Widget layouts
An example form with widgets that cannot not fit in the window
-Using special tool called widget tqlayouts can help to automatically lay out the form widgets. Widget tqlayout is an action of grouping two or more widgets so these are well positioned and have appropriate sizes. +Using special tool called widget layouts can help to automatically lay out the form widgets. Widget tqlayout is an action of grouping two or more widgets so these are well positioned and have appropriate sizes.
Using tqlayout in this form improves tqalignment. Moreover, its space is better developed. Text fields are closer each other, spacing is constant. @@ -311,9 +311,9 @@ Besides the grid type, there are other widget tqlayout types.
--A spring in widget tqlayouts is a special, invisible element allowing to adjust widget's position and size within tqlayouts. Such a spring stretches or squeezes a widget on the right, top, bottom or left hand, so it can have desired size and position. +A spring in widget layouts is a special, invisible element allowing to adjust widget's position and size within layouts. Such a spring stretches or squeezes a widget on the right, top, bottom or left hand, so it can have desired size and position.
To use a spring:
-Widget tqlayouts can be combined (or nested). On the following example you can identify two nested tqlayouts: +Widget layouts can be combined (or nested). On the following example you can identify two nested layouts:
-
Two widget tqlayouts combined: horizontal tqlayout inside of a grid tqlayout
+
Two widget layouts combined: horizontal tqlayout inside of a grid tqlayout
The horizontal tqlayout is treat in the example as a single widget by the grid tqlayout - it takes exactly one "cell" of the grid. @@ -356,11 +356,11 @@ After opening a form designed this way in the data view, you can notice (by resi
-
The form using the two tqlayouts displayed in data view
+
The form using the two layouts displayed in data view
To remove widget tqlayout without removing widgets, perform one of these actions:
Removing widget tqlayout using the Break Layout command will not remove widgets contained in the tqlayout. If you want to remove the widgets as well, just select the tqlayout by clicking on its border and press Delete key or use
Instead of setting a fixed size for your widgets, in &kexi; you can choose between various widget's size policies. A size policy is a flexible strategy for controlling how a widget is stretched (or shrunk) depending on other neighbouring widgets and space available within the form. diff --git a/kexi/doc/handbook/translation-status.txt b/kexi/doc/handbook/translation-status.txt index 278770d8..65aa6008 100644 --- a/kexi/doc/handbook/translation-status.txt +++ b/kexi/doc/handbook/translation-status.txt @@ -68,10 +68,10 @@ DONE 5.4.6. Assigning data sources DONE 5.4.7. Inserting text labels DONE 5.4.8. Actions DONE * Assigning actions to form buttons -DONE 5.4.9. Widget tqlayouts -DONE * Springs in widget tqlayouts -DONE * Advanced widget tqlayouts -DONE * Removing widget tqlayouts +DONE 5.4.9. Widget layouts +DONE * Springs in widget layouts +DONE * Advanced widget layouts +DONE * Removing widget layouts DONE * Size policies for widgets within a tqlayout DONE 5.4.10. Setting widgets size and position by hand DONE 5.4.11. Setting the tab order -- cgit v1.2.1