PC SOFT

WINDEV的在线文档

  • Anchor
  • Limits
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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本地访问

..锚定 is used to manage the anchor of a control. You can:
  • Find out the current anchor of a control in a window.Find out the current anchor of a control in a window or report.
  • Modify the characteristics of the anchor applied to a control in a window.
Reminder: The anchor of a control is used to define the behavior of the control (size and location) when the window (or report) is resized.

Several properties are used to define or find out the anchor rate of a control. These properties are as follows:

16版本和更高版本
WinDevLinux This property is now available for the WinDev applications in Linux.
16新版本
WinDevLinux This property is now available for the WinDev applications in Linux.
WinDevLinux This property is now available for the WinDev applications in Linux.
18版本和更高版本
WinDevWindows Store apps This property is now available in Windows Store Apps mode.
18新版本
WinDevWindows Store apps This property is now available in Windows Store Apps mode.
WinDevWindows Store apps This property is now available in Windows Store Apps mode.
19版本和更高版本
WinDev This property is now available for the report controls.
19新版本
WinDev This property is now available for the report controls.
WinDev This property is now available for the report controls.
例子
// Define the characteristics of the anchor
// The control will be resized in height and width
LIST_List1..锚定=锚定.宽度+锚定.高度

语法

Finding out the anchor of a control 隐藏详细信息

<Current Anchor> = <Control Name>..锚定
<Current Anchor>: Integer constant
Characteristics of the anchor currently defined for the control.
锚定.底The control moves to the bottom
锚定.右The control moves to the right
锚定.高度The control stretches to the bottom
锚定.左上No action
锚定.宽度The control stretches to the right

锚定.右 and 锚定.宽度 can be associated with 锚定.底 and 锚定.高度.
<Control Name>: Character string (with or without quotes)
Name of the control used.
WinDevWindows Store apps

Modifying the anchor of a control 隐藏详细信息

<Control Name>..锚定 = <New Anchor>
<Control Name>: Character string (with or without quotes)
Name of the control used.
<New Anchor>: Integer constant
Characteristics of the anchor currently defined for the control.
锚定.底The control moves to the bottom
锚定.右The control moves to the right
锚定.高度The control stretches to the bottom
锚定.左上No action
锚定.宽度The control stretches to the right

锚定.右 and 锚定.宽度 can be associated with 锚定.底 and 锚定.高度.

注意

Anchor

Reminder: the anchor of a control is used to define the behavior of the control (size and location) when the window or report is resized.

The positions and widths used to calculate the new sizes and positions are the ones defined in the editor. They can be returned by ..X初始位置, ..初始纵坐标, ..初始宽度 and ..初始高度.

WinDevWindows Store apps Notes:
  • ..锚定 is not available for a column found in a Table or TreeView Table control. The anchor of a column is specified by ..宽度锚定率 directly.
  • If the control is associated with a tab pane, the anchor is defined in relation to the Tab control.

Limits

WinDevWindows Store apps ..锚定 applies to all the window controls.

19版本和更高版本
WinDev ..锚定 applies to all the report controls. In this case, you can only find out the type of anchoring used.
19新版本
WinDev ..锚定 applies to all the report controls. In this case, you can only find out the type of anchoring used.
WinDev ..锚定 applies to all the report controls. In this case, you can only find out the type of anchoring used.