Special

Clearance Sale!

We've been publishing for over five years now and it's time to clear out our inventory of back issues, so we're slashing prices!

RBD Magazines

Check out this amazing clearance sale of all our past issues. Missing some issues? This is a great time to complete your RBD collection. Save up to 40% off the regular price of our printed back issue packages. These prices are only good until the end of the year May 2008 and supplies are limited, so place your order today.

Article Preview


Buy Now

Print:
PDF:

Intel corner

Printing Rotated Text, Part 2

Using declares to draw rotated text on Windows

Issue: 4.1 (September/October 2005)
Author: Christian Schmitz
Article Description: No description available.
Article Length (in bytes): 7,699
Starting Page Number: 40
RBD Number: 4119
Resource File(s):

Download Icon 4119.sit Updated: Monday, September 19, 2005 at 12:21 PM

Related Link(s): None
Known Limitations: None

Excerpt of article text...

In this article we willdo the same thing we did last issue, but with unicode textencoding support -- allowing you to draw rotated text into any graphics object. This technique works fine both on-screen and in graphics sent to the printer.

On the Windows side we have to face the different Windows versions which all have different Unicode support. Mac OS X is nearly Unicode-only and Mac OS Classic uses the local text encoding like MacRoman for Western Europe.

So using only the Unicode version may make your application non-functional on Windows 95/98/ME as not all functions are available in Unicode versions there. Still, you may get some updated DLLs with Unicode functions if you install a newer Internet Explorer version.

If you want to avoid trouble with users which use older Windows versions, you can still include the ANSI declare. You need to use a soft declare to your unicode function. Soft declares are a new feature in REALbasic 2005 althrough they can be done using plugins already in REALbasic 3. The soft declare to the newer unicode function will fail if the function called is not available, so you can call the older function in that case.

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