Example: Range Checking
Demonstrates using the range checking features and events of the CWNumEdit control.
Description
This example shows the CWNumEdit and its ability to check for range values. The numeric edit control in the upper left corner is the input value that is compared to the minimum and maximum at the bottom left corner. As the value of the input numeric control is changing, the ValueChanging Event LED lights up and the boxes below it display the new, previous, and attempted values. If the value is out of range, the Out of Range LED lights up. Once the value has changed, the ValueChanged Event LED lights up and the boxes below it display the values. If the value is out of range, the Out of Range LED lights up.
To start this example, enter a number into the numeric edit control in the top left corner. The program will then go through the two events and update the information. If you click the Range Checking check box, the program will automatically put the value to 10 or 0 if you are greater than or less than the range.
Example Location
Samples\UI\NumericEdit\Range Checking