At 04:40 PM 7/6/2003 -0700, Ken Krugler wrote:
In my custom table draw proc, my use of WinDrawChar() always results in
it
drawing a 'box' character.  No matter where the coordinates are, it
draws a
box rather than the character I pass it.  I have tried setting the font
/
underline mode as the API suggests.  I have made sure to cast my
character
to a WChar.  Nothing works -- only if I substitute WinDrawChar() for
WinDrawChars() and pass it an 2-byte array consisting of the character,
followed by a NULL, does it work.

Also, WinDrawTruncChars() draws my strings just fine, but as soon as the
string is long enough to warrant a truncation, the string is terminated
with the same damned box character, rather than an ellipsis (...) as it
should be.

Any ideas what's going on?  Very odd, I'm stumped.  Thanks!

In Palm OS 3.1, WinDrawChar doesn't work properly on non-Japanese ROMs.
WinDrawTruncChars call this routine, so it also has the same bug. If you
have to run on 3.1, use WinGlueDrawChar and WinGlueDrawTruncChars in the
PalmOSGlue library.
------------


Thanks, Danny & Ken.  I'll use the Glue lib function, then!  You'd think
that the API documentation for these two problematic WinDraw APIs would
reflect this problem.

-Jeff Ishaq



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to