At 12:16 AM +0200 5/15/02, Theo wrote:
I'm probably getting myself into more trouble than its worth, but how
do I [set a control title] that with a declare? And also, to the
rest of the list.
I don't have the toolbox handy -- but it'll be something like SetControlTitle.
Does anyone have examples of UTF being drawn on screen using the
textconverter?
Dim enc as TextEncoding
Dim conv as TextConverter
enc = GetTextEncoding(&h100, 0, 2) // UTF-8
conv = GetTextConverter(enc, enc)
myUtf8String = conv.Convert(myUtf8String)
g.DrawString myUtf8String, 100, 100
Cheers,
- Joe
P.S. It turns out that this doesn't work as well in OS X in 4.5a9 as
I thought. It does work in OS 9, however (where the Unicode will be
automatically converted to the script associated with the font you're
drawing in). And in 4.5a10 it will work in OS X too.
--
,------------------------------------------------------------------.
| Joseph J. Strout REAL Software, Inc. |
| joe at realsoftware dot com http://www.realsoftware.com |
`------------------------------------------------------------------'
|