Software Toolbox Corporate Home

 

 

 

 

 

Digital Value

Passing Digital Values to a Component

SF_Properties_Animations_350
  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 “DiscreteColorFill“ in the AnimationMode property.
  5. Select the number of bands of animation you wish to have (1 to 15) (see Using Bands for details)
  6. Set the Style of Animation and Color for each band (see Using Bands for details)
  7. Set the Breakpoints for when you want the animation to change (see Using Bands for details)
  8. Click on the Apply button
  9. Pass the value that you want to control the animation to the control using the following syntax:

C#

standardControl1.BandsCollection[1].DiscreteValue = false;

or

bool discreteValue = false;
standardControl1.BandsCollection[1].DiscreteValue = discreteValue;

VB

standardControl1.BandsCollection(1).DiscreteValue = false;

or

Dim discreteValue As Bool
discreteValue = false
standardControl1.BandsCollection(1).DiscreteValue = discreteValue;

Accessing Individual Elements within the Band Collection

Each band in the  BandsCollection is Zero-based addressed. That is, the first element in  the collection is accessed with an index number of 0, the second element with 1, the third element with 2, and so on.

The key  here then is to make sure that you are accessing the correct element.  The easiest way to determine this is to bring up the BandsCollection  editor from the Properties window:

SF_BandsCollection_Editor

Next, take a look at the bands you have already created. The number to  the left of each instance is the number you need to use as the index  number for the BandsCollection.

SF_BandsCollection

So if you were to access the band that has the caption “HiHi” (as  above), the index will be 0, and the code you will use is as follows:

VB

standardControl1.BandsCollection(0).DiscreteValue = false;

C#

standardControl1.BandsCollection[0].DiscreteValue =

Legal Notices
Sitemap

Privacy
Search

PRODUCT HOME     DETAILS     FREE TRIAL     SUPPORT
 

P: 1-888-665-3678 (US) or +1-704-849-2773 (Global), F: +1-704-849-6388
148A East Charles Street, Matthews, North Carolina, USA 28105
© Copyright Software Toolbox, Inc. 1996-2022, All Rights Reserved Worldwide.