Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ InTouch HMI

ShowAt() 函数

  • Last UpdatedFeb 05, 2018
  • 1 minute read

在指定的位置上打开 InTouch 窗口。它也可以将打开的 InTouch 窗口移到指定的位置。该位置是窗口的中点。

备注:如果窗口的一条边在屏幕显示范围之外,则该窗口不会居中。

语法

ShowAt (windowname, xpos, ypos)

参数

windowname

要打开或移动的窗口的名称。

xpos

窗口中心要移到的水平位置,以像素计。值、模拟标记名或数值表达式。

ypos

窗口中心要移到的垂直位置,以像素计。值、模拟标记名或数值表达式。

示例

此脚本打开 Main 窗口,使它在 (x:450, y:130) 位置居中。

ShowAt("Main",450,130);

此脚本打开 UserDialog 窗口,并使它在调用此函数(例如,按钮)的对象的中心位置上进行居中。

ShowAt("UserDialog",$ObjHor,$ObjVer);

In This Topic