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:

From Scratch

From Scratch: Finishing TanGram

Issue: 3.3 (January/February 2005)
Author: William Leshner
Author Bio: William Leshner has been programming for twenty-five years and programming Macs for fifteen. He has spent a good deal of the last several years building REALbasic applications, utilities, and plugins, including KidzMail, KidzLog, and SQLitePluginPro.
Article Description: No description available.
Article Length (in bytes): 9,693
Starting Page Number: 40
RBD Number: 3319
Resource File(s):

Download Icon 3319.sit Updated: Wednesday, January 19, 2005 at 12:05 PM

Related Web Link(s):

http://www.realsoftware.com/realbasic/showcase/logos/

Known Limitations: None

Excerpt of article text...

Introduction

This is the sixth of six articles in which we are building a puzzle game called TanGram. As you may recall from the previous articles, TanGram is a game where players drag around polygonal shapes and arrange them to make pictures. As a challenge, players are presented with pre-created pictures that they must recreate, and players can also save their own pictures to challenge their friends.

This is our final TanGram article and I plan to concentrate on the finishing touches, such as the about box and the application icon -- things that will give our application a polished look and make it ready to ship.

About Box

Every application needs an about box. We have already talked about implementing one in a previous article (check out REALbasic Developer 1.6, where we talked about implementing ShipIt!'s about box). However, there are a few extras we can add to our TanGram about box.

The additions I'll be talking about are primarily aimed at Mac OS X. The about box will look and work correctly on Windows and Mac OS Classic as well, but the target is OS X. The window itself will be a document window (instead of a dialog). If you visit Apple's website and peruse their human interface guidelines, you will find that they suggest using a document window with only the close widget enabled. In other words, the maximize (green) and collapse (yellow) widgets should be disabled. So the first thing we will do is disable those two widgets. Then we will add a clickable "Made With REALbasic" image to the about box as well. Clicking on the image will take the user to the REAL Software website.

...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