Set Animation Coordinates to Cursor Position
Parameter |
Type |
Range |
Description |
anim_loc |
byte |
0 ... 7 |
index of the animation control |
Sets the coordinates for an animated graphic stored in the animation control to the current cursor position.
Note
- Graphic alignment is taken into account (refer to Set Graphic Alignment). If the alignment area is smaller than the specified animated graphic, a [NACK] is returned.
- The coordinates are assigned to the animation control independet from the currently selected viewport. They will be interpreted with respect to the origin of the viewport in which the animation was loaded (refer to Load Animated Graphics).
- Setting the coordinate without stopping an already running animation may cause unwanted effects.
- If anim_loc has never been loaded with an animated graphic before a [NACK] is returned.
This example sets the coordinates for the graphic referenced with index 2 by the animation control to the current cursor position.
See also:
Copyright © demmel products gmbh. All rights reserved.