|
Passing Analog Values to a Component
 |
- Place an instance of the Symbol Factory Standard Control on your form and pick an image you would like to animate
- Right click on the control and bring up the Symbol Factory Standard Control property sheet
- Select the Animation tab
- Select one of the two "Analog" selections in the AnimationMode property. If you want to use double-precision (also
known as "Float" or "Real") numbers, select "AnalogColorFill". If you wish to use Integer numbers, select "AnalogIntegerColorFill".
- Select the number of bands of animation you wish to have (1 to 15) (see Using Bands for details)
- Set the Style of Animation and Color for each band (see Using Bands for details)
- Set the Breakpoints for when you want the animation to change (see Using Bands for details)
- Click on the Apply button
- Pass the value that you want to control the animation to the control using the following syntax:
For AnimationMode = "AnalogColorFill"
|
C#
standardControl1.AnalogValue1 = 50.6;
or
double doubleValue = 50.6; standardControl1.AnalogValue1 = doubleValue;
|
|
VB
standardControl1.AnalogValue1 = 50.6
or
Dim doubleValue As Double doubleValue = 50.6 standardControl1.AnalogValue1 = doubleValue
|
For AnimationMode = "AnalogIntegerColorFill"
|
C#
standardControl1.AnalogValue1 = 50;
or
int integerValue = 50; standardControl1.AnalogValue1 = integerValue;
|
|
VB
standardControl1.AnalogValue1 = 50
or
Dim integerValue As Integer integerValue = 50.6 standardControl1.AnalogValue1 = integerValue
|
Previous: Using Bands Next: Passing Digital Values to the Component
|