Scott,
>I'm trying to use WinDrawTruncChars in my program, to draw strings
>shortened with "..." on the end as needed. But I'm seeing something
>bad: on Palm OS 3.1 it draws a garbage character at the end instead of
>the "..." ellipsis character. On 3.2 and 3.3 it works correctly.
>
>More detail: on a Palm V device this garbage character is the little 'no
>such character' square symbol; but on POSE the error is consistently
>0xD5 (chrCapital_O_Tilde), which is suspiciously equal to the byte value
>POSE fills uninitialized memory with.
>
>So I'm wondering, if this API is indeed broken on 3.1, or if I need to
>"help" it by poking the ellipsis character into a low memory global
>somewhere (yeah right) or something else I'm missing?
The problem is that WinDrawChar (a new routine added for OS 3.1) is broken
in the Latin version of the 3.1 ROMs. This routine is called to draw the
final ellipsis when a string has to be truncated. Sorry about that.
I'll modify the WinGlueDrawChar routine to catch this case. I believe
you'll be able to get the new glue code at PalmSource.
-- Ken
Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200 (direct) +1 408-261-7550 (main)