Incompatible GraphicInfo properties
- Last UpdatedJul 08, 2024
- 2 minute read
When you call ShowGraphic with an incompatible combination of GraphicInfo properties, you will see the following warning message at run time:
ShowGraphic <Identity Name>. <Graphic name>.<script name> conflicting parameters used in script: <Parameter1>, <Parameter2>
For example, the following incompatible properties result in a window with both Width and Height equal to 0:
graphicInfo.WindowRelativePosition = aaGraphic.WindowRelativePosition.WindowXY;
graphicInfo.RelativeTo = aaGraphic.RelativeTo.Desktop;
In this example, a WindowRelativePosition of WindowXY is incompatible with a size RelativeTo of Desktop.
The following table shows incompatible property combinations. Shaded cells indicate incompatible GraphicInfo property combinations in addition to those specified in the Incompatible Properties column.
|
Window relative position |
Size: |
Incompatible properties |
Notes |
|---|---|---|---|
|
Desktop |
Graphic |
X Y Width Height |
|
|
Desktop |
Desktop |
X Y Width Height |
|
|
Desktop |
CustomizedWidthHeight |
X Y ScalePercentage |
|
|
Window |
Graphic |
X Y Width Height |
|
|
Window |
Desktop |
X Y Width Height |
RelativeTo to be Window |
|
Window |
CustomizedWidthHeight |
X Y ScalePercentage |
|
|
ClientArea |
Graphic |
X Y Width Height |
|
|
ClientArea |
Desktop |
X Y Width Height |
RelativeTo to be ClientArea |
|
ClientArea |
CustomizedWidthHeight |
X Y ScalePercentage |
|
|
ParentGraphic |
Graphic |
X Y Width Height |
|
|
ParentGraphic |
Desktop |
X Y Width Height |
RelativeTo to be ParentGraphic |
|
ParentGraphic |
CustomizedWidthHeight |
X Y ScalePercentage |
|
|
ParentElement |
Graphic |
X Y Width Height |
|
|
ParentElement |
Desktop |
X Y Width Height |
|
|
ParentElement |
CustomizedWidthHeight |
X Y ScalePercentage |
|
|
Mouse |
Graphic |
X Y Width Height StretchWindow StretchWindow |
|
|
Mouse |
Desktop |
X Y Width Height StretchWindow StretchWindow |
RelativeTo to be Desktop |
|
Mouse |
CustomizedWidthHeight |
X Y Width Height StretchWindow StretchWindow |
|
|
DesktopXY |
Graphic |
Width Height StretchWindow StretchWindow |
|
|
DesktopXY |
Desktop |
Width Height StretchWindow ToScreenWidth StretchWindow ToScreenHeight |
Conflicting WindowRelative |
|
DesktopXY |
CustomizedWidthHeight |
ScalePercentage StretchWindow StretchWindow |
|
|
WindowXY |
Graphic |
Width Height StretchWindow StretchWindow |
|
|
WindowXY |
Desktop |
Width Height StretchWindow StretchWindow |
Conflicting WindowRelative |
|
WindowXY |
CustomizedWidthHeight |
ScalePercentage StretchWindow StretchWindow |
|
|
ClientAreaXY |
Graphic |
Width Height StretchWindow StretchWindow |
|
|
ClientAreaXY |
Desktop |
Width Height StretchWindow StretchWindow |
Conflicting WindowRelative |
|
ClientAreaXY |
CustomizedWidthHeight |
ScalePercentage StretchWindow StretchWindow |