The position of the report element can be specific, to enable reports that use
pre-printed forms, or dynamic, adjusting as needed based on the length of the report
element.
- Dynamic Layouting - if you Ctrl-drag the report element onto the Design Window, the element is positioned relative to the existing elements. Because the design changes dynamically based on the actual size of the specific report items, this is the recommended method. When you drag the element, a moving red line indicates where the element will be located when you drop it. A colored dot on the element indicates its attachment point. If you select a container and then double-click an element in the ToolBox or Data View, the element will be automatically positioned after the last existing child object in the container.
- Specific Positioning - if you drag and drop report elements on the Design Window using the mouse, you can position the element at a specific spot on the virtual grid of a container. This is recommended when you need to match the report design to a preprinted form. When you drop the element, it will snap to the closest point on the grid. A red dot on the element indicates its attachment point.
As you drag an element, a moving thin black line helps you line it up with other elements on the report if desired. The X and Y properties of the element in the Properties View indicate its location relative to its parent. These are automatically calculated when you drop an element into a container, or move it around. When you move it inside a container, the lines of the container are highlighted in yellow :
Figure 1. Highlighted container
All elements that are dragged from the Toolbox or Data View have the floatingBehavior property set to enclosed (the object will be enclosed in its parent.)
- X-Axis and Y-Axis arrows - These indicate the direction of the X-Axis and Y-Axis. On containers the Y-Axis arrow indicates the filling or layoutDirection of the container. For example, a Stripe lays out its children next to each other left-to-right within the container, and the Y-Axis arrow points to the left. Other containers have the Y-Axis arrow pointing down, as they lay out their children next to each other in a top-to-bottom direction.
- Attachment point - The attachment point at an intersection of the X-Axis and Y-Axis is indicated by a green dot (for dynamic layouting) or a red dot (for specific positioning.) If you drag the edge of the element to expand its size, the attachment point remains fixed. You can move the attachment point using the right-click context menu.
Elements on a report have a right-click menu of options that allow you to:
- Align elements within a vertical or horizontal container, and move the attachment point on the element
- Change the width and height of elements
- Change the focus to a different container or other element
- Change the object type