Article Preview
Buy Now
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.