Kexi/Handbook/Building Simple Databases/Designing Forms/Inserting widgets - text fields: Difference between revisions
(Initial) |
(formatting tweek) |
||
(11 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
==Inserting widgets - text fields== | <languages/> | ||
<translate> | |||
====Inserting widgets - text fields==== <!--T:1--> | |||
<!--T:2--> | |||
# Click Text Box button on the Widgets toolbar. | Let us create a form to show information about persons, i.e. a form connected to the '''''Persons''''' table. | ||
# Click on the form surface with the left mouse button. A new text box widget will be placed | |||
# If needed, move the inserted widget using drag & drop to | <!--T:3--> | ||
# Click the Text Box toolbar button again and click on the form surface to insert another widget. Repeat this action | As the form is to be designed to present data obtained from the '''''Persons''''' table, we need to place appropriate fields onto it. To do this we will use the buttons on the <menuchoice>Widgets</menuchoice> toolbar. Each button corresponds to a single widget type. | ||
<!--T:4--> | |||
# Click <menuchoice>Text Box</menuchoice> button on the <menuchoice>Widgets</menuchoice> toolbar.</translate> | |||
<translate> | |||
<!--T:8--> | |||
# Click on the form surface with the left mouse button. A new text box widget will be placed at the point where you clicked. Before you release you can drag your mouse to specify a desired size for the widget. </translate> | |||
<translate> | |||
<!--T:9--> | |||
# If needed, move the inserted widget using drag & drop to the desired position. You can resize the widget afterwards by dragging one of the small boxes appearing near its corners. Note that the boxes are only visible when the widget is selected. If you select another widget or the form surface, the boxes disappear. </translate> | |||
<translate> | |||
<!--T:10--> | |||
# Click the <menuchoice>Text Box</menuchoice> toolbar button again and click on the form surface to insert another widget. Repeat this action until you have a total of five text boxes on your form. (For the sake of simplicity we limit ourselves to five data fields). | |||
<!--T:5--> | |||
{{Note| | {{Note| | ||
* There is a context menu available in | * There is a context menu available in Form Design mode, activated by a right mouse button click on the desired widget or the form's surface. The menu offers commands like <menuchoice>Cut</menuchoice>, <menuchoice>Copy</menuchoice>, <menuchoice>Paste</menuchoice>, <menuchoice>Delete</menuchoice> and other, more complex options. <!--FIXME no menubar in master/2.4 Many of the commands are also provided in the menubar, usually <menuchoice>Edit</menuchoice>.--> Keyboard shortcuts are also available for these commands. Some of the commands are only available for certain types of widgets. <!--}}--> | ||
* The commands | |||
* Holding the Ctrl key down while clicking a widget allows | <!--T:11--> | ||
* Instead of using | * The commands <menuchoice>Cut</menuchoice>, <menuchoice>Copy</menuchoice> and <menuchoice>Paste</menuchoice> makes it possible to move or copy widgets between forms, even between separate database projects. | ||
<!--T:12--> | |||
* Holding the <keycap>Ctrl</keycap> key down while clicking a widget allows selection of multiple widgets. | |||
<!--T:13--> | |||
* Instead of using <menuchoice>Copy</menuchoice> and <menuchoice>Paste</menuchoice> commands, to duplicate a widget within the same form you can hold down the <keycap>Ctrl</keycap> key while moving the widget. After the mouse button is released, the dragged widget will not be moved but copied in the new location.}}<!--{{--> | |||
<!--T:6--> | |||
{{Prevnext2 | |||
|prevpage=Special:MyLanguage/Kexi/Handbook/Building_Simple_Databases/Designing_Forms/Using_the_Widgets_tab | |||
|prevtext=Using the Widgets tab | |||
|nextpage=Special:MyLanguage/Kexi/Handbook/Building_Simple_Databases/Designing_Forms/Assigning_data_sources | |||
|nexttext=Assigning data sources | |||
|index=Special:MyLanguage/Kexi/Handbook|indextext=Back to menu | |||
}} | |||
<!--T:7--> | |||
[[Category:Kexi]] | |||
[[Category:Tutorials]] | |||
</translate> |
Latest revision as of 16:50, 28 August 2015
Inserting widgets - text fields
Let us create a form to show information about persons, i.e. a form connected to the Persons table.
As the form is to be designed to present data obtained from the Persons table, we need to place appropriate fields onto it. To do this we will use the buttons on the
toolbar. Each button corresponds to a single widget type.- Click button on the toolbar.
- Click on the form surface with the left mouse button. A new text box widget will be placed at the point where you clicked. Before you release you can drag your mouse to specify a desired size for the widget.
- If needed, move the inserted widget using drag & drop to the desired position. You can resize the widget afterwards by dragging one of the small boxes appearing near its corners. Note that the boxes are only visible when the widget is selected. If you select another widget or the form surface, the boxes disappear.
- Click the toolbar button again and click on the form surface to insert another widget. Repeat this action until you have a total of five text boxes on your form. (For the sake of simplicity we limit ourselves to five data fields).