Add a view
To add a view:
- In the Form Description area, click Views.
- In the Task Pane, click Add Desktop View.
For information on settings for the view, see View Properties. For more information on creating a layout, see Layout Fundamentals.
Add a control
There are two ways to add a control to a view;
- Drag a control or a data source field from the task pane
- Double-click a control or a data source field in the task pane
If you use a data source field to add a control, the default control for the field is added. Which control is the default control for a field, is determined by a combination of the data type and the data interpretation of the field. Some fields can provide an alternative to the default control by pressing SHIFT when adding the field. For example the default for a field referencing other objects is a Combo Box, but by pressing SHIFT while adding the field, a Search Box is added instead.
Drag a control or data source field from the task pane
- In the task pane header, click the down arrow.
- Select Data Sources, and then expand the data source to locate the field to add. or Select Desktop Controls, and then locate the control to add.
- Drag the item to the correct position in the layout.
While dragging the item, observe the layout for temporary placeholders, which indicates where the item will be positioned. For more information on dragging controls in the layout, see Move a Control.
Double-click a control or data source field in the task pane
- Select a control in the layout, according to where you want to positin the new control.
- In the task pane header, click the down arrow.
- Select Data Sources, and then expand the data source to locate the field to add. or
Select Desktop Controls, and then locate the control to add. - Double-click the control or field.
If you select a container control, the new control is added as the last item in the group. If you select a non-container control, the new control is added immediately after the selected control.
Move a control
To move a control within the layout, a drag-and-drop operation is performed on the control. All controls can be moved, except the group control, which must temporarily be changed to a group box to be moved.
While dragging the control, observe the layout for temporary placeholders, which indicates where the control will be positioned.
In complex layouts, it can sometimes be difficult to position controls precisely. In these cases it can be a good idea to save the form before the move operation, to make it possible to revert the operation. It is also possible to temporariliy change the alignment, size, or other properties of some controls, to make it easier to position the control you are moving correctly.
Modify a control's properties
To modify the properties of a control
- Select the control you want to modify
- Then in the Properties area, locate the property you want to modify.
For information on the properties of a control, see Desktop Controls, and find the article describing the specifi control.
Select a control
It is necessary to select a control to
- Modify it's properties.
- Delete it.
- Add a control inside it or next to it.
Different scenarios for selecting controls in the view are described in the table below.
To select | Do the following |
---|---|
Visible control | Click the control. |
Visible or non-visible parent of selected control | Press ESC once. |
View | Click a control, and then press ESC repeatedly to select the topmost parent, which is the view itself. |
The figures below illustrate how parent controls are selected when a control is selected, and then ESC is pressed repeatedly until the view is selected.
Select control | |||
Then press ESC to select parent | |||
Then press ESC to select parent | |||
Then press ESC to select parent |
Browse the control hierarchy
The nature of the container controls, that they can contain one or more other controls, results in a hierarchy of controls. In many cases it can be difficult to get an overview of the structure of the controls, only by looking at the layout. The correct positioning of a control can also be challenging in a complex structure.
For this purpose it is possible to browse the control hierarchy as a folder structure, in the Control View. The container controls can be collapsed, or expanded to show the controls it contains. The structure can thereby easily be revised, and by selecting a control in the Control View, the control is also selected and displayed in the layout.
To display the control view, do the following:
- In the task pane header, click the down arrow.
- Select Control View.
- Then expand the nodes to browse the control hierarchy.
To see detailed information about the types of the controls, select the View Details check box.