Animation Properties for Mimic Items on Layers
When using the Mimic.Layers property, you can access any of the animation properties for any Mimic item on that Layer. The properties are the same as the properties that are shown on the Animations window for that item. For example, a Remote Image item has Alignment, PickComment, PickDisabled, PickParam, PickType, PosAnchor, PosMax, PosMin, PosVal, RefreshRate, TooltipText, Url, and Visible.
There are also some additional properties that you can access which are not shown on the Animations window. These include:
- X1, Y1, X2, and Y2—Available on every Mimic item, the X1, X2, Y1, and Y2 properties represent the coordinates of the item on the Mimic. X1 is the horizontal position (X-Axis) of the top left of the item, X2 is the horizontal position of the bottom right of the item, Y1 is the vertical position (Y-Axis) of the top left of the item, and Y2 is the vertical position of the bottom right of the item. These properties are read only.
- CurrentColIdx—This animation property is only available for embedded Queries Lists on Mimics. An animation for the CurrentColldx property returns the index number of the last selected column (0 is the first column from the left, 1 is the next column to the right, 3 the next column to the right and so on). If -1 is returned, it means that a column was not previously selected.
- CurrentRowIdx—This animation property is only available for embedded Queries Lists and embedded Alarms Lists on Mimics. An animation for the CurrentRowIdx property returns the index number of the currently selected row (0 is the top row, 1 is the next row down, 2 the next row down and so on). If -1 is returned, it means that there is no row currently selected.
- CurrentRowId—This animation property is only available for embedded Queries Lists on Mimics. An animation for the CurrentRowId property returns the ID of the database item represented by the currently selected row. If -1 is returned, it means that there is no row currently selected or the ID for the relevant database item is unavailable.
- CurrentRowName—This animation property is only available for embedded Queries Lists on Mimics. An animation for the CurrentRowName property returns the name of the database item represented by the currently selected row. If nothing is returned, it means that there is no row currently selected.
- CurrentRowSource—This animation property is only available for embedded Alarms Lists on Mimics. An animation for the CurrentRowSource property returns the source of the alarm represented by the currently selected row. Typically, the source is the name of a database item. If nothing is returned, it means that there is no row currently selected.
For more information on the properties on the Animations window, see Using the Animations Window in the ClearSCADA Guide to Mimics.