Example: UI Formats

Measurement Studio User Interface

Example: UI Formats

Demonstrates different numeric formats available for the axes and values of different user interface controls.

Description

This example demonstrates how the format of different controls can be altered to include percent, symbolic engineering, scientific notation, percent, and currency. The most interactive part of this example is the section with the lightening bolt button. When the button is pressed, the value of the electric charge increases greatly, as shown by the Electric Charge meter and the graph. Over time, the charge decays. Next to the lightening generator area is a profit calculator. Depending on the value of the price slide, the profit and profit percentage change. Directly below the lightening generator is a frequency display. You can change the position of the knob and the box below it will display the current value of the knob. Below those controls are two numeric edit boxes with a format of date and time. The three slides on the bottom right demonstrate a thermometer, percentage slide, and scientific notation slide.

To interact with this example, you can do a variety of tasks. The lightening button can be pressed to simulate the electric charge and decay of a lightening strike. The Frequency dial can be turned, and the value will appear in the CWNumEdit box. The Price slide can be changed to see the profit and profit percentage. The other slides can be changed, but nothing occurs on the user interface as they are changed. The date and time can also be changed. To exit this example, press the Quit button.

Example Location

Samples\UI\Common\UI Formats