The Form Editor features a number of tools to facilitate quick and easy form design. The following features are discussed in this section, in the order that they appear in the Editor Toolbars: layering, group/ungroup, setting alignments, space distribution, same element size, and anchoring.

Arranging Element Layers

Elements can be arranged from the front to the back layers using the bring forward (1), send backward (2) send to front (3) and send to back (4) buttons on the Layering toolbar. The first two buttons send the selected item front or back one layer at a time; the latter two buttons send items all the way to the front or back of form.

To set element layering:

  1. Select the item(s) that you would like to be in front or at the back of other items in the layout. You can select multiple items by click-dragging a selection box around the item(s), or by holding down the CTRL key while clicking on the items.
  2. Click on the desired Layering button.

Grouping/Ungrouping Elements

Elements can be grouped using the group (1) ungroup (2) buttons on the Reorganize toolbar.

To group/ungroup elements:

  1. Select a group of elements that you wish to set to the same height or width by click-dragging a selection box around them, or by holding down the CTRL key while clicking on each element.
  2. Click on the appropriate button on the Reorganize toolbar.

Setting Alignments

The Align toolbar contains buttons for aligning elements (1-left, 2-right, 3-top, 4-bottom, 5-center, and 6-middle).

To align a group of elements:

  1. Select a group of elements that you wish to align by click-dragging a selection box around them, or by holding down the CTRL key while clicking on each element.
  2. Click the appropriate alignment button on the Align toolbar.

You can also use alignment guides to align elements:

  1. Click on the horizontal or vertical ruler to create an alignment guide.

    2. Select the items you want to align and drag them towards the alignment guide.

Setting Space Distribution

The Distribute toolbar contains buttons for setting space distribution of selected elements.

To distribute  elements equally:

  1. Select a group of elements that you wish to distribute by click-dragging a selection box around them, or by holding down the CTRL key while clicking on each element.
  2. Click on the appropriate Distribute button on the toolbar.

Note: The default spacing for these two options can be changed by accessing Preferences in the contextual menu and setting the Small Offset value to the desired spacing.

Setting Element Sizes

The Same Size toolbar allows you to set the same width (1) or same height (2) for the a group of selected elements.

To set the same width or height:

  1. Select a group of elements that you wish to set to the same height or weight by click-dragging a selection box around them, or by holding down the CTRL key while clicking on each element.
  2. Click on the appropriate button on the Same Size toolbar.

Setting Element Anchors

Anchor settings determine how the layout of elements change when an end-user resizes the application window.

WebClient/NGClient has a special scenario when anchoring bottom/right an element in a form which is bigger than its parent container. In certain situations, the element will be anchored to the viewport rather than to the whole form. In this scenario, you should also anchor element top in order to enforce its anchoring to the form and get desired layout.

Visualizing the Anchoring Indicators

The Editor Preferences toolbar allows you to visualize anchoring indicators, which can then be used to modify anchoring settings for an element. 

The anchoring indicator appears as a gray box to the top right of the selected element.

Setting the Anchoring Property

To set the desired anchoring option:

  1. Click on the gray box to reveal the menu.
  2. Select your anchoring preferences from the drop-down list (see image below). 

Note: If you want the elements to grow or shrink when the window is resized, you need to set opposite anchors (for exampleSetting Element Sizes, anchor TOP,LEFT; or anchor BOTTOM, RIGHT).