Special

Special Print Offer

Get the RBD Archive 7 printed book for FREE when you buy an Ultimate Combo printed back issue package! This perfect-bound book is over 300 pages and contains the full year 7 of RBD. Normally this book sells for $50, but with this special offer you not only save 25% off the normal package price, you get the book included for free!

RBD Magazines

Supplies are limited, so take advantage of this offer before it goes away.

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