Special

Special Print Closeout!

We're clearing out the remainder of our print issues at fire sale prices -- as much as 75% off! Quantities are extremely limited and only available while supplies last. Hurry to take advantage of this one-time offer.

RBD Magazines

Once these printed back issues are gone, they are gone!

Article Preview


Buy Now

PDF:

From Scratch

Graph Paper Maker, Part 3

Create your own customized graph paper

Issue: 7.4 (May/June 2009)
Author: Brad Rhine
Article Description: No description available.
Article Length (in bytes): 6,408
Starting Page Number: 50
RBD Number: 7415
Resource File(s):

Download Icon 7415.zip Updated: Friday, May 1, 2009 at 11:37 AM

Related Link(s): None
Known Limitations: None

Excerpt of article text...

Last time, we continued work on Graph Paper Maker, a little utility that, appropriately enough, makes graph paper. We added the ability to have preset graph paper formats. This time, we're going to some more functionality to our project.

Bold Axes

Up until now, our graph paper has just been a grid. Granted, it's a pretty customizable grid, but it's still just a grid. Most of the graph paper I've used has also had bold axes at regular intervals, whether every one inch or every ten centimeters or some other pattern. So let's begin this issue by adding that to our project.

The first thing we need to decide is how to allow our user to add the bold axes (at this point, the English major in me feels compelled to point out that I'm using axes as the plural of axis and am in no way talking about hatchet-like objects). We could allow the user to enter another measurement value in inches for both the horizontal and vertical planes. However, we then run the risk of our user entering values that don't line with the regular grid lines. There are ways to deal with that, of course, but for our purposes here, the easiest solution is probably to have the user specify how frequently the bold axes should occur. For example, the user could ask for a grid line every quarter inch, and also specify that every fourth line should be bold.

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