SWTB_Banner_Left_LogoOnly

Symbol Factory .NET
Cutaway Control in VS2005 or 2008

clearpixel

SWTB_7Button_BlueLine

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
    Cutaway Control 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:

    C#

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

    or

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

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



    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.

Previous: Passing Digital Values to your Component

 

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