|
Passing a Discrete Value to a Symbol Factory Standard Control
to control Discrete Animation

1. Place an instance of the Symbol Factory Standard Control on your form and pick an image you would like to animate
2. Right click on the control and bring up the Symbol Factory Standard Control property sheet
3. Select the animation tab
4. Select "1 - Discrete Color Fill" for the AnimationMode property
5. Select the number of bands of discrete animation you wish to have (1 to 5)
6. Set the Style of Animation and Color for each band
7. Click on the Apply button
8. Pass the values that you want to control the bands of discrete animation to the control using the following syntax:
SFStandard1.DiscreteValue1 = True or False
Through
SFStandard1.DiscreteValue5 = True or False
Example:
SFStandard1.DiscreteValue1 = True
Or
SFStandard1.DiscreteValue1 = blnUserVariable
Note: If more than one band is chosen and more than one of the DiscreteValueX (x = 1 to 5) properties is set to true, the control sets the highest priority to the setting of DiscreteValue1 and works its way down.
Example:
Symbol Factory Control Setup as shown below:
The following table describes how the control will appear based on a variety of combinations of the DiscreteValue1 through DiscreteValue3 properties:
|
DiscreteValue1
|
DiscreteValue2
|
DiscreteValue3
|
Appearance of the Control
|
|
True
|
False
|
False
|
Red and Grey Blink Shaded (Band 1)
|
|
False
|
True
|
False
|
Yellow Shaded (Band 2)
|
|
False
|
False
|
True
|
Green Shaded (Band 3)
|
|
True
|
True
|
False
|
Red and Grey Blink Shaded (Band 1 takes priority over 2)
|
|
True
|
True
|
True
|
Red and Grey Blink Shaded (Band 1 takes priority over 2 and 3)
|
|
False
|
True
|
True
|
Yellow Shaded (Band 2 takes priority over band 3)
|
Previous Step - Analog Animation | Next Step - Using Events
|