Jump to content

Kexi/Handbook/Building Simple Databases/Designing Forms/Setting widgets size and position by hand/en: Difference between revisions

From KDE UserBase Wiki
FuzzyBot (talk | contribs)
Updating to match new version of source page
 
FuzzyBot (talk | contribs)
Updating to match new version of source page
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
====Setting widgets size and position by hand====
====Setting widgets size and position by hand====


In case when your form has no main layout set for auto-positioning and auto-resizing its widgets, you will probably want to modify the position and size of widgets so the form can look cleaner and be easier to use. The '''Kexi''' form designer simplifies this task by offering the following groups of commands:  
<!--FIXME no layouts in 4.2: In case when your form has no main layout set for auto-positioning and auto-resizing its widgets, y-->You will probably want to modify the position and size of widgets so the form can look cleaner and be easier to use. The '''Kexi''' form designer simplifies this task by offering the following groups of commands:  


{{Info|The functions that were explained in this page does not seem to be availlable in the current version of '''Kexi''' (2.4)}}
<!-- TODO: see info box above
*Adjusting sizes of selected widgets. The commands are available in the <menuchoice>Format->Adjust Widgets Size</menuchoice> submenu of the menubar and in the <menuchoice>Adjust Widgets Size</menuchoice> submenu of the context menu. The toolbar's drop down button <menuchoice>Adjust Widgets Size</menuchoice> is also available.  
*Adjusting sizes of selected widgets. The commands are available in the <menuchoice>Format->Adjust Widgets Size</menuchoice> submenu of the menubar and in the <menuchoice>Adjust Widgets Size</menuchoice> submenu of the context menu. The toolbar's drop down button <menuchoice>Adjust Widgets Size</menuchoice> is also available.  
-->


<!-- TODO: see info box above
:;To Fit
:;To Fit
:The size of the selected widgets will be altered so each widget will be resized to its preferred size and its contents; for example, a text label's size will be changed to fit its text. The position of the widgets will not be changed.  
:The size of the selected widgets will be altered so each widget will be resized to its preferred size and its contents; for example, a text label's size will be changed to fit its text. The position of the widgets will not be changed.  
-->
<!-- TODO: see info box above
:;To Grid
:;To Grid
:The size of the selected widgets will be altered so each widget's corner will be placed on the form's (or other container's) grid point. The widget's position can be slightly altered.  
:The size of the selected widgets will be altered so each widget's corner will be placed on the form's (or other container's) grid point. The widget's position can be slightly altered.  
-->
<!-- TODO: see info box above
:;To Shortest
:;To Shortest
:The height of the selected widgets will be altered so that each of them will have the same height as the shortest one. The position of the widgets will not be changed.  
:The height of the selected widgets will be altered so that each of them will have the same height as the shortest one. The position of the widgets will not be changed.  
-->
<!-- TODO: see info box above
:;To Tallest
:;To Tallest
:The height of the selected widgets will be altered so that each of them will have the same height as the tallest one. The position of the widgets will not be changed.  
:The height of the selected widgets will be altered so that each of them will have the same height as the tallest one. The position of the widgets will not be changed.  
-->
<!-- TODO: see info box above
:;To Narrowest
:;To Narrowest
:The width of the selected widgets will be altered so that each of them will have the same height as the narrowest one. The position of the widgets will not be changed.  
:The width of the selected widgets will be altered so that each of them will have the same height as the narrowest one. The position of the widgets will not be changed.  
-->
<!-- TODO: see info box above
:;To Widest
:;To Widest
:The width of the selected widgets will be altered so that each of them will have the same height as the widest one. The position of the widgets will not be changed.
:The width of the selected widgets will be altered so that each of them will have the same height as the widest one. The position of the widgets will not be changed.
   
   
* Aligning positions of the selected widgets. The commands are available in the <menuchoice>Format->Align Widgets Position</menuchoice> submenu of the menubar and in the <menuchoice>Align Widgets Position</menuchoice> submenu of the context menu. The toolbar's drop down button <menuchoice>Align Widgets Position</menuchoice> is also available.  
* Aligning positions of the selected widgets. The commands are available in the <menuchoice>Format->Align Widgets Position</menuchoice> submenu of the menubar and in the <menuchoice>Align Widgets Position</menuchoice> submenu of the context menu. The toolbar's drop down button <menuchoice>Align Widgets Position</menuchoice> is also available.  
-->


<!-- TODO: see info box above
:;To Left
:;To Left
:All the selected widgets' left positions will be moved to the position of the leftmost widget's left edge.  
:All the selected widgets' left positions will be moved to the position of the leftmost widget's left edge.  
-->
<!-- TODO: see info box above
:;To Right
:;To Right
:All the selected widgets' right positions will be moved to the position of the rightmost widget's right edge.  
:All the selected widgets' right positions will be moved to the position of the rightmost widget's right edge.  
-->
<!-- TODO: see info box above
:;To Top
:;To Top
:All the selected widgets' top positions will be moved to the position of the uppermost widget's upper edge.  
:All the selected widgets' top positions will be moved to the position of the uppermost widget's upper edge.  
-->
<!-- TODO: see info box above
:;To Bottom
:;To Bottom
:All the selected widgets' bottom positions will be moved to the position of the bottommost widget's bottom edge.  
:All the selected widgets' bottom positions will be moved to the position of the bottommost widget's bottom edge.  
-->
<!-- TODO: see info box above
:;To Grid
:;To Grid
:All the selected widgets' top-left corners will be moved so that they are positioned in the nearest grid point.  
:All the selected widgets' top-left corners will be moved so that they are positioned in the nearest grid point.  
-->


<!-- TODO: see info box above
None of the above commands resizes the widgets.
None of the above commands resizes the widgets.
-->


<!-- TODO: see info box above
There are also additional commands available: <menuchoice>Bring Widget to Front</menuchoice> (i.e. above all other widgets) and <menuchoice>Send Widget to Back</menuchoice> (i.e. below all other widgets). These two commands are rarely used, as it is not common to place one widget on top of an other (except when a container widget contains other widget inside). Also note that clicking a widget with a mouse button is enough to bring the widget to front.
There are also additional commands available: <menuchoice>Bring Widget to Front</menuchoice> (i.e. above all other widgets) and <menuchoice>Send Widget to Back</menuchoice> (i.e. below all other widgets). These two commands are rarely used, as it is not common to place one widget on top of an other (except when a container widget contains other widget inside). Also note that clicking a widget with a mouse button is enough to bring the widget to front.
-->


{{Prevnext2
{{Prevnext2

Latest revision as of 19:47, 13 June 2012

Setting widgets size and position by hand

You will probably want to modify the position and size of widgets so the form can look cleaner and be easier to use. The Kexi form designer simplifies this task by offering the following groups of commands:

Information

The functions that were explained in this page does not seem to be availlable in the current version of Kexi (2.4)