Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 4.2

COLUMN

Control Panel Library

Circular Gauge Class

Issue: 4.2 (November/December 2005)
Author: Joe Nastasi
Author Bio: Joe Nastasi is the president of Pyramid Design, the developers of A-OK! The Wings of Mercury, A-OK! Spacecraft Simulation System, and FTP Suite.
Article Description: No description available.
Article Length (in bytes): 7,029
Starting Page Number: 36
Article Number: 4217
Resource File(s):

Download Icon 4217.zip Updated: 2013-03-11 19:07:59

Related Link(s): 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.

...End of Excerpt. Please purchase the magazine to read the full article.