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 14 in printed book and digital formats -- plus a one-year subscription 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

PDF:

Beginner's Corner

Printing 101

The basics of printing

Issue: 9.3 (March/April 2011)
Author: Marc Zeedar editor-at-rbdeveloper.com
Article Description: No description available.
Article Length (in bytes): 16,873
Starting Page Number: 63
RBD Number: 9310
Resource File(s):

Download Icon 9310project.zip Updated: Wednesday, March 2, 2011 at 1:47 PM

Related Link(s): None
Known Limitations: None

Excerpt of article text...

We haven't covered printing often in this magazine so I thought this would be a good time to explore the basics of printing.

In principle, printing is no different from drawing regular graphics. A printer returns graphics object just like a canvas or picture and you can just draw into it. But even regular graphics can be tricky to draw and there are a few differences when drawing to a printer.

Because of that I like use a print preview window for testing all my printing-related routines. This has two benefits. First, it allows me to test printing without wasting a lot of paper. Second, it automatically provides my user with a print preview feature, if I want that (I can use it just for testing if that's all I need).

For today's lesson I've put together a demonstration of a simple print preview feature. We can use that to explore the effects of our drawing commands. In the next issue's column we'll explore printing a little deeper with a practical demonstration application.

Print Preview

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