This section describes how to create and save a new form, place elements on a form, and access and modify element properties.
Stoc |
---|
...
1. You can create a new form using one of three methods:
...
5. Click Finish. A new Form Editor is opened for the newly created Form.
...
The new form is saved with the preselected dataprovider fields upon creation. When you make changes to the form, an asterisk next to the form's name at the top of the Form Editor indicates that there are unsaved changes. You can save the form by:
...
To revert unwanted changes, use the context menu on the form and select Revert Form (at the top of the list).
Sometimes a solution contains large numbers of forms, and the need to group them in a logical manner becomes obvious. In order to group the forms from within a solution, working sets are used.
...
Note that all working sets are stored in the resources project, which allows them to be shared between developers through the team provider used.
...
You can place elements on a form using several different ways:
Click on an appropriate Elements Toolbar wizard button.
Tip | ||
---|---|---|
| ||
Elements can be placed with a custom size when dragging and dropping an item from the Palette by holding down the left mouse button upon reaching the editor area and dragging the until the desired shape and size is reached. |
Info | ||
---|---|---|
| ||
The status bar at the bottom of the Servoy perspective displays sizing information while the element is being drawn or resized. In the example below, the first pair of numbers represent the x & y coordinates of the upper left corner of the shape, and the second pair shows the size in pixels. Upon setting the final size, the x & y coordinates of the lower right corner of the element appears. |
The following elements are available:
...
Info |
---|
Note: A text field can be linked to a datasource (once placed, the datasource can be assigned by double-clicking the element, or by selecting the field and then clicking on the Text Field icon in the Elements toolbar.) |
...
The Properties view allows you to set some formatting properties for each element. Examples include size, background, border type, fonts, and margins. More details can be found in the Developer Reference section.
...