Aaron Ardiri <[EMAIL PROTECTED]> wrote in message news:58416@palm-dev-forum...
> thats an aweful load of work for something so small :)
>
> a few points: - 1. WinPaintChars() -> os 3.5+ only if i recall right
> - 2. why not just use pilrc to do all this?
Wow, your method is much cleaner! Unfortunately, I have a mostly shared
WinCE/PalmOS source base, so I use the C header file method so I can use it
on both platforms.
You're right about WinPaintChars() and OS 3.5. The code I actually use calls
a wrapper routine (shown here), but I replaced it with WinPaintChars for the
example. I wonder how many of us have reinvented the wheel with wrappers
like this... :)
extern void
CommonDrawNormalText(CHAR *text, int numChars, COORD x, COORD y) {
#ifdef PALM_OS
if (CommonGetRomVersion() >= sysVersion35) {
WinPaintChars(text, numChars, x, y);
} else {
WinDrawChars(text, numChars, x, y);
}
#else // Windows CE...
...
#endif
}
-----> kell
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/