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 1.3



Issue: 1.3 (December/January 2002)
Author: Michael Richardson
Article Description: No description available.
Article Length (in bytes): 3,829
Starting Page Number: 8
Article Number: 1302
Related Web Link(s):


Excerpt of article text...

While not commonly used in most applications, on-screen rulers are a vital tool for any advanced word processing, graphing, or image editing task. zegsRuler, by Fractured Software, lets you use horizontal or vertical rulers anywhere in your REALbasic project.

Adding a zegsRuler to your project is trivial; simply create a new canvas and set its Super to GraphicRuler (an included class with a Super of zegsRuler that has several helpful functions built-in). Then, you must call the Initialize and Reset methods of your new ruler with specific values that are explained in the online documentation.

Now you have a fairly basic ruler. It automatically handles some things for you, like the dotted red line that follows the mouse (it only handles this when the mouse is actually over the ruler, though a special method can be called from the window's MouseMove event to handle it in other places). To scroll your ruler, just call the Scroll method, probably from a scrollbar or similar control.

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