Download as PDF - Perpetuum Software

Transcript
PERPETUUM
software
www.perpetuumsoft.com
The Technology of the Instrument Design.
Designing the Simple Instrument with a Slider
Let‟s consider the instrument designer utilization for designing instruments.
Creating the instrument with a slider.
Let‟s determine our requirements to the designed instrument.
1. The instrument should contain a slider moving on the scale within the limited range from
0 to 100.
2. Ticks on the scale should be designed in different colors within the following ranges: [080) and [80-100).
3. When the slider exceeds the 80 mark it should change the color.
4. When the mouse is on the slider, the current value should be displayed alongside as text.
1. The instrument should contain a slider moving on the scale within the limited diapason
from 0 to 100.
Place the linear trajectory into the instrument. The trajectory is intended for assigning the
scale shape. Place the Scale element into the instrument.The scale assigns value range. To
make scale lie on the trajectory you should place it into the trajectory (you can do it by
dragging it in the Instrument elements tree).
To visualize the scale element you should mark it by ticks and text marks. So add the Ticks
and ScaleLabels elements from the Element toolbox into the Scale1 element.
The instrument itself.
Let‟s set the Distance property for the Ticks1 to 10. Let‟s set the Distance property for the
NumericLabels to 20.
Add the Slider element (
), intended for representing the current value and its changing
with the help of the mouse, into the instrument. The instrument structure is as follows.
290