SWTB_Banner_Left_LogoOnly

Symbol Factory .NET
Passing Digital Values in VS2003

clearpixel

SWTB_7Button_BlueLine

Passing Digital Values to a Component

VS2003_Digital Values

  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:
  10. 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 = false;

Previous: Passing Analog Values to a Component   Next: Building Tank Cutaway Graphics

 

 | HOME | PRODUCT DETAILS | HOW TO USE WITH | FREE DEMO | ORDERING | CONTACT US

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