Software Toolbox Corporate Home

 

 

 

 

 

Cutaway Control

Creating an Animated and Filled Tank Using the Symbol Factory Controls

Creating an animated and filled tank takes an instance of the Symbol Factory .NET component and the Symbol Factory Cutaway component. To create the following:

VS2003_Cutaway
  1. Place an instance of the Symbol Factory Standard Control on a form
  2. Bring up the Symbol Factory Standard Control property sheet
  3. Select a tank image from the "Tanks" category
  4. Click the OK button
  5. Place an instance of the Symbol Factory Cutaway Control on the form and position it on top of the tank image you placed on the form.
  6. Right click on the Symbol Factory Cutaway Control and select Properties on the menu that appears. This will bring up the Symbol Factory Cutaway Control property sheet.
VS2003_Cutaway_Properties

    7. Set the LevelMax and LevelMin properties to match the range of values you will be passing to the control. You may also choose to set these properties from your program using the syntax:

VB

cutawayControl1.LevelMax = 100
cutawayControl1.LevelMin = 0

or

Dim doubleValue As Double
doubleValue = 100
cutawayControl1.LevelMax = doubleValue
doubleValue = 0
cutawayControl1.LevelMin = doubleValue

    8. Pass the value representing the tank level to the control in your code using the syntax:
    For Float or Real Numbers:

C#

cutawayControl1.LevelMax = 100;
cutawayControl1.LevelMin = 0;

or

double doubleValue = 100;
cutawayControl1.LevelMax = doubleValue;
doubleValue = 0;
cutawayControl1.LevelMin = doubleValue;

C#

cutawayControl1.Level = 50.6;

or

double doubleValue = 50.6;
cutawayControl1.Level = doubleValue;

VB

cutawayControl1.Level = 50.6

or

Dim doubleValue As Double
doubleValue = 50.6
cutawayControl1.LevelMax = doubleValue

For Integer Numbers:

C#

cutawayControl1.LevelInt = 50;

or

int integerValue = 50;
cutawayControl1.LevelInt = integerValue;

VB

cutawayControl1.LevelInt = 50

or

Dim integerValue As Integer
integerValue = 50
cutawayControl1.LevelInt = integerValue

    9. The value you pass should be within the bounds of the LevelMax and LevelMin properties.

    Final Step

You now have the basics of what the Symbol Factory .NET component can do for your application. Please download a demo copy or purchase your own license of the Symbol Factory .NET to realize the full potential of this product.

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.