PC SOFT

WINDEV的在线文档

  • Overview
  • How do I proceed?
  • 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
  • Notes
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

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 enables you to easily position, align or resize the controls found in a window, in a page or in a report.

1: Markers

2: Border markers

3: Guides

How do I proceed?

Displaying the rulers

To display the rulers, select "Display .. Rulers".To display the rulers, on the "显示" pane, in the "编辑帮助" group, check "规则".

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.
Note: To view the window, the page or the report with or without its guides, select "Guide visible" from the popup 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 the [F12] key ("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 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: Select "Add a marker" from the popup menu (right mouse click) of the ruler. 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 the guides" from the popup menu of rulers.
  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 ("Display .. Rulers").Display (if necessary) the rulers in this window, page or report: on the "显示" pane, in the "编辑帮助" group, check "规则".
  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.

Notes

  • 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 the CTRL key and keep it down.
    3. Move the border marker with the mouse.