Example: Advanced Slide

Measurement Studio User Interface

Example: Advanced Slide

Demonstrates some advanced uses of the CWSlide control.

Description

This example demonstrates the advanced properties of the CWSlide control. The horizontal slide at the top of the user interface shows multiple pointers with the different fill options. As you move each pointer around, you can see how the options are different. The ramp and tank use the Advanced property page to replace the frame of the control with custom bitmaps. The bitmaps use a transparent color are moved forward in the Z-direction to hide other components that are part of the control. Move the pointers on the horizontal slide at the top of the interface to change the values of the ramp and tank. You can also change the values using your mouse. The vertical slide on the left side of the interface demonstrates a moving updated value. It is a value pair that is updated in the ValueChanged event. You can turn off the general labels without disabling the value pair label by setting the Tick Spacing to By Units and setting Major to 0. The thermometer on the right side of the interface demonstrates a range of fill colors. The thermometer uses one fill pointer per color which is updated in the ValueChanged event of the pointer.

Example Location

Samples\UI\Slide\Advanced Slide