Software Toolbox Corporate Home

 

 

 

 

 

Passing Analog Values to a Component

VS2003_Analog 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 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”.
  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. 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

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.