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 3.6

COLUMN

Printing Rotated Text

Using declares to draw a rotated string on Windows.

Issue: 3.6 (July/August 2005)
Author: Christian Schmitz
Author Bio: Christian Schmitz is the creator of the Monkeybread Software REALbasic Plugins.
Article Description: No description available.
Article Length (in bytes): 9,283
Starting Page Number: 42
Article Number: 3620
Related Link(s): None

Excerpt of article text...

Recently a REALbasic user asked in the REALbasic newsgroup (comp.lang.basic.realbasic) about how to get the Windows device handle of a graphics object. He needed to talk directly to the Windows API to do some special things like printing rotated text. This article will show how to do this.

How to get the handle

The first difficulty is getting the actual handle. In C, an HDC is a handle for the device context. In REALbasic we can use a simple integer for this. To get it, you currently need a plugin. The MBS Plugins include a "graphics.HandleMBS as integer" function which can be used without registering the plugin collection. Depending on reader feedback we may also offer a special REALbasic Developer plugin for this function in the future.

The HandleMBS function can be used like this in REALbasic:

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