I am testing on a PalmOS 3.1 debug ROM on POSE, with CW9.1 and the 5.0 SDK. I have verified that I am running with the Palm OS 3.1 new feature set, which includes the 'new' WinDrawChar() and WinDrawTruncChars() APIs.
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.
-- Ken -- Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/