Article Preview
Buy Now
| Print: | |
| PDF: |
The Topographic Apprentice
Control Panel Library
Circular Gauge Class
Issue: 4.2 (November/December 2005)
Author: Joe Nastasi
Article Description: No description available.
Article Length (in bytes): 5,424
Starting Page Number: 36
RBD Number: 4217
Resource File(s):
4217.sit Updated: Thursday, November 17, 2005 at 12:41 PM
4217.zip Updated: Thursday, November 17, 2005 at 12:41 PM
Related Link(s): None
Known Limitations: None
Excerpt of article text...
In this installment of Topographic Apprentice, we'll take a look at the final control panel element, the CircularGaugeClass. As we shall see, this class is a bit more complicated than the other two control panel elements.
CircularGaugeClass
The CircularGaugeClass can display multiple values at once. Each value is assigned to a needle in the gauge. An altimeter, for example, can have two or three needles, each representing a different range. In the example project there are two needles, one for 0 to 1000 feet and the other for 0 to 10,000 feet. As with the others, it is based on the PanelEntityClass, which provides basic functionality and properties.
Properties
GaugeStart as Double -- A local property that indicates where the zero location will be, as indicated by an angle of 0 to 360 degrees, where 0 is at the top of the gauge.
GaugeArc as Double -- A local property that indicates how far, in degrees, the gauges will move when the value is at ValueMax. An angle of 360 degrees indicates that the gauge has no stops and rotates continuously.
...End of Excerpt. Please purchase the magazine to read the full article.
Article copyrighted by REALbasic Developer magazine. All rights reserved.
|










