The Animation object allows you to animate views. There are several types of animations. The Initialize methods determine the animation type. See this tutorial for a program demonstrating the animations. This is an 'Activity Object', it cannot be declared under Sub Process_Globals.
Initializes an alpha animation. This animation affects the view's transparency (fading effect). The alpha values are between 0 to 1 where 0 is fully transparent and 1 is fully opaque. FromAlpha - The first frame value. ToAlpha - The last frame value.
Initializes a rotation animation. The view will rotate between the given values. Rotation pivot is set to the top left corner. FromDegrees - The first frame rotation value. ToDegrees - The last frame rotation value.
Initializes a scale animation. The view will be scaled during the animation. The scaling pivot will be set to the top left corners. FromX - The first frame horizontal scale. FromY - The first frame vertical scale. ToX - The last frame horizontal scale. ToY - The last frame vertical scale.
Initializes a translation animation. The view will move according to the given values. FromDX - First frame horizontal position relative to the original position. FromDY - First frame vertical position relative to the original position. ToDX - Last frame horizontal position relative to the original position. ToDY - Last frame vertical position relative to the original position.
Gets or sets the number of times the animation will repeat. A value of 0 means that it will play once. Set to -1 for a non stopping animation. Example: Animation1.RepeatCount = 1
Gets or sets the repeat mode. Relevant when RepeatCount is larger than 0 (or -1). The default is REPEAT_RESTART which means that the animation will restart each time. REPEAT_REVERSE causes the animation to repeat in reverse each time. For example if the animation moves the view to the right 100 pixels, in the next repeat it will return to the left. Example: Animation1.RepeatMode = Animation1.REPEAT_REVERSE
Starts the animating the given view. Note that a single animation should not be applied to more than one view at a time. Example: Animation1.Start(Button1)