Gets information on an AN - the type or state of the animation that is currently displayed.
Syntax
DspAnInfo(nAN, nType)
nAN:
The animation-point number.
nType:
The type of information:
0 - The type of animation currently displayed at the AN. The following is returned:
0 - No animation is displayed.
1 - Color is displayed.
2 - A bar graph is displayed.
3 - Text is displayed.
4 - A symbol is displayed.
5 - AN animation symbol is displayed.
6 - A trend is displayed.
7 - A button is displayed.
8 - A slider is displayed.
9 - A plot is displayed.
1 - The state of the animation currently displayed. If color is displayed, the color is returned. If a bar graph, trend, or symbol is displayed, the bar, trend, or symbol name is returned. If text is displayed, the font handle is returned.
2 - The value of the text or the name of a button at the given AN point is returned.
3 - The type of animation currently displayed at the AN for Mode 0 plus the following:
10 - Rich Edit
11 - Bitmap
12 - Straight Line
13 - Free hand Line
14 - Rectangle
15 - Ellipse
16 - Spark
17 - Group
18 - Windows Meta File
19 - Poly Line
20 - Dynamic object
21 - Pipe
22 - Symbol Set
23 - OCX
24 - Basic AN
25 - Number
26 - Advanced AN
27 - Keyboard AN
28 - Sizemove AN
29 - Touch AN
Return Value
The animation information, which depends on the type passed argument, as described above, as a string.
Related Functions
Example
IF DspAnInfo(25,0) = "1" THEN
/* If color on AN 25, then get the color */
col = DspAnInfo(25,1);
END
See Also
Published June 2018