不兼容的 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 StretchWindow |
|
|
鼠标 |
桌面 |
X 是 宽度 Height StretchWindow StretchWindow |
RelativeTo 应为 Desktop |
|
鼠标 |
CustomizedWidthHeight |
X 是 宽度 Height StretchWindow StretchWindow |
|
|
DesktopXY |
图形 |
宽度 高度 StretchWindow StretchWindow |
|
|
DesktopXY |
桌面 |
宽度 高度 StretchWindow ToScreenWidth StretchWindow ToScreenHeight |
冲突的 WindowRelative |
|
DesktopXY |
CustomizedWidthHeight |
ScalePercentage StretchWindow StretchWindow |
|
|
WindowXY |
图形 |
宽度 高度 StretchWindow StretchWindow |
|
|
WindowXY |
桌面 |
宽度 高度 StretchWindow StretchWindow |
冲突的 WindowRelative |
|
WindowXY |
CustomizedWidthHeight |
ScalePercentage StretchWindow StretchWindow |
|
|
ClientAreaXY |
图形 |
宽度 高度 StretchWindow StretchWindow |
|
|
ClientAreaXY |
桌面 |
宽度 高度 StretchWindow StretchWindow |
冲突的 WindowRelative |
|
ClientAreaXY |
CustomizedWidthHeight |
ScalePercentage StretchWindow StretchWindow |