Special

Clearance Sale!

We've been publishing for over five years now and it's time to clear out our inventory of back issues, so we're slashing prices!

RBD Magazines

Check out this amazing clearance sale of all our past issues. Missing some issues? This is a great time to complete your RBD collection. Save up to 40% off the regular price of our printed back issue packages. These prices are only good until the end of the year May 2008 and supplies are limited, so place your order today.

Article Preview


Buy Now

Print:
PDF:

The Topographic Apprentice

Control Panel Library

Indicator Class

Issue: 3.6 (July/August 2005)
Author: Joe Nastasi
Author Bio: Joe Nastasi is the president of Pyramid Design, a software development firm and the developers of A-OK! Spacecraft Simulation System and FTP Suite.
Article Description: No description available.
Article Length (in bytes): 6,947
Starting Page Number: 38
RBD Number: 3618
Resource File(s): None
Related Link(s): None
Known Limitations: None

Excerpt of article text...

Having discussed the Panel Class last session, we will now focus on the individual panel entity classes: IndicatorClass, AnalogGaugeClass, and SwitchClass. All of these classes are based on the PanelEntityClass discussed in issue 3.4.

IndicatorClass

This class is the simplest of our controls. It just switches 2D pictures, stored as a shapes, by changing the Shape property to reflect the current indicator state.

Properties

Height as Integer -- A local property that contains the height of the indicator.

Width as Integer -- A local property that contains the width of the indicator.

LabelObject as Object3D -- A local property that contains an instance of the label overlay picture, which is stored as a shape in an Object3D.

Methods

Load(xdoc As XmlDocument) -- This global method loads an XML file that contains the information needed to define the indicator. It is called PanelClass.LoadAllPanelItems.

Initialize(name As String, x As Integer, y As Integer, state As Integer) -- This local method sets up the indicator name and position, and sets its initial value. It is called from IndicatorClass.Load.

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

Article copyrighted by REALbasic Developer magazine. All rights reserved.


 


|

 


Weblog Commenting and Trackback by HaloScan.com