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 7.4

COLUMN

Graph Paper Maker, Part 3

Create your own customized graph paper

Issue: 7.4 (May/June 2009)
Author: Brad Rhine
Author Bio: Brad Rhine is the developer of Kodiak, a complete student information system written entirely in REALbasic. That's his day job. In his spare time, he writes shareware applications in REALbasic.
Article Description: No description available.
Article Length (in bytes): 7,748
Starting Page Number: 50
Article Number: 7415
Resource File(s):

Download Icon 7415.zip Updated: 2009-05-01 11:25:06

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