ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Managing alignments
  • Overview
  • How to?
  • Displaying the rulers
  • Configuring the rulers
  • Handling the markers
  • Creating a marker
  • Moving a marker
  • Deleting markers
  • Copying the markers and the guides
  • Special case: The border markers
  • Definition and move
  • Remarks
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Overview
When creating or modifying a window in the window editor, you have the ability to display the alignment rulers.
These alignment rulers can also be displayed in the page editor and in the report editor.
These rulers have snap-on guides: any control that comes close to a guide is automatically "snapped" by it. This feature allows you to easily position, align or resize the controls found in the window, page or report.
1: Markers
2: Border markers
3: Guides
How to?

Displaying the rulers

To display the rulers, go to the "Display" tab, "Help for edit" group and check "Rulers".
Two types of guides can be used:
  • The guides, used to align and to arrange the controls inside the windows, pages or reports.
  • The border guides, used to define a border of identical size on each side of the window, page or report.
Remark: To show or hide the guides in the window, page or report, select or deselect "Show guides" in the context menu of the rulers.
Guides enabled
Whether they are visible or not, the guides are always enabled: a control moved with the mouse toward a marker is automatically snapped by the corresponding guide.
Once the control is attached to the guide, all the controls attached to this guide are automatically moved when the guide is moved.
Note: A control moved with the keyboard keys toward a marker is not always attached to the corresponding guide. Indeed, this operation is performed to the nearest pixel.

Configuring the rulers

The rulers can also be configured from the edit options of the window editor, page editor or report editor. To do so, press F12 ("Magnetism" tab).
This option is used to:
  • make the rulers visible or not.
  • make the guides visible or not.
  • choose the color of the guides.
Handling the markers
The markers can be easily handled by the mouse. When a marker is hovered over by the mouse, the cursor turns into a double arrow.

Creating a marker

To create a marker:
  • 1st method: Click one of the rulers. The marker is created on the nearest mark.
  • 2nd method: Right-click the ruler and select "Add a marker" in the context menu. The marker is created on the nearest mark.

Moving a marker

To move a marker:
  1. Click the marker found in the ruler. The cursor turns into a double arrow.
  2. Move the cursor to the new marker position.

Deleting markers

  • To delete a marker, select "Delete the marker" from the popup menu (right mouse click) of a marker.
  • To delete all the markers from a ruler, select "Delete all" from the popup menu of a ruler.

Copying the markers and the guides

To copy the markers and the guides:
  1. Select "Copy Guides" in the ruler popup menu.
  2. Open the window, page or report where the markers and the guides must be copied.
  3. Display (if necessary) the rulers in this window, page or report: on the "Display" tab, in the "Help for edit" group, check "Rulers".
  4. Select "Paste" in the ruler popup menu.
Special case: The border markers

Definition and move

The border markers are used to define a "margin" in the current window (page or report). The border markers are located at the extremities of rulers.
To move the left or right margin, point to a border marker on the horizontal ruler. When the pointer turns into a double arrow, move the margin.
To move the top or bottom margin, point to a border marker on the vertical ruler. When the pointer turns into a double arrow, move the margin.

Remarks

  • The border markers cannot be deleted. If the borders are not required in a window or in a report, the border markers can be reduced to their minimum size.
  • By default, the border markers found on the opposite sides are tied: when moving a border marker on one side, the border marker on the opposite side is moved accordingly.
    To only modify one of the border markers in the window editor, you must:
    1. Click the border marker: the mouse cursor turns into a double arrow.
    2. Press and hold the Ctrl key.
    3. Move the border marker with the mouse.
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 04/03/2023

Send a report | Local help