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

AVEVA™ InTouch HMI

不兼容的 GraphicInfo 属性

  • Last UpdatedSep 24, 2024
  • 1 minute read

使用不兼容的 GraphicInfo 属性组合调用 ShowGraphic 时,您将在运行时看到以下警告消息:

ShowGraphic <Identity Name>. <Graphic name>.<script name> conflicting parameters used in script: <Parameter1>, <Parameter2>

例如,以下不兼容的属性将导致窗口的宽度和高度都等于 0:

graphicInfo.WindowRelativePosition = aaGraphic.WindowRelativePosition.WindowXY;

graphicInfo.RelativeTo = aaGraphic.RelativeTo.Desktop;

在本例中,WindowRelativePosition 为 WindowXY 与大小 RelativeTo 为 Desktop 不兼容。

下表显示不兼容的属性组合。阴影型单元指出在“不兼容的属性”列中指定的那些属性以外的不兼容 GraphicInfo 属性组合。

窗口相对位置

大小:
相对于

不兼容的属性

备注

桌面

图形

X

宽度

高度

桌面

桌面

X

宽度

高度

桌面

CustomizedWidthHeight

X

ScalePercentage

窗口

图形

X

宽度

高度

窗口

桌面

X

宽度

高度

RelativeTo 应为 Window

窗口

CustomizedWidthHeight

X

ScalePercentage

ClientArea

图形

X

宽度

高度

ClientArea

桌面

X

宽度

高度

RelativeTo 应为 ClientArea

ClientArea

CustomizedWidthHeight

X

ScalePercentage

ParentGraphic

图形

X

宽度

高度

ParentGraphic

桌面

X

宽度

高度

RelativeTo 应为 ParentGraphic

ParentGraphic

CustomizedWidthHeight

X

ScalePercentage

ParentElement

图形

X

宽度

高度

ParentElement

桌面

X

宽度

高度

ParentElement

CustomizedWidthHeight

X

ScalePercentage

鼠标

图形

X

宽度

高度

StretchWindow
ToScreenWidth

StretchWindow
ToScreenHeight

鼠标

桌面

X

宽度

Height StretchWindow
ToScreenWidth

StretchWindow
ToScreenHeight

RelativeTo 应为 Desktop

鼠标

CustomizedWidthHeight

X

宽度

Height StretchWindow
ToScreenWidth

StretchWindow
ToScreenHeight

DesktopXY

图形

宽度

高度

StretchWindow
ToScreenWidth

StretchWindow
ToScreenHeight

DesktopXY

桌面

宽度

高度

StretchWindow

ToScreenWidth

StretchWindow

ToScreenHeight

冲突的 WindowRelative
Position 和 RelativeTo 组合

DesktopXY

CustomizedWidthHeight

ScalePercentage

StretchWindow
ToScreenWidth

StretchWindow
ToScreenHeight

WindowXY

图形

宽度

高度

StretchWindow
ToScreenWidth

StretchWindow
ToScreenHeight

WindowXY

桌面

宽度

高度

StretchWindow
ToScreenWidth

StretchWindow
ToScreenHeight

冲突的 WindowRelative
Position 和 RelativeTo 组合

WindowXY

CustomizedWidthHeight

ScalePercentage

StretchWindow
ToScreenWidth

StretchWindow
ToScreenHeight

ClientAreaXY

图形

宽度

高度

StretchWindow
ToScreenWidth

StretchWindow
ToScreenHeight

ClientAreaXY

桌面

宽度

高度

StretchWindow
ToScreenWidth

StretchWindow
ToScreenHeight

冲突的 WindowRelative
Position 和 RelativeTo 组合

ClientAreaXY

CustomizedWidthHeight

ScalePercentage

StretchWindow
ToScreenWidth

StretchWindow
ToScreenHeight