>Can you tell us exactly what is/isn't in IntlGlue.lib? The 3.1
>Companion doc says it has the International and Text Managers. But I
>see some functions listed in the 3.1 New Feature Set which are related
>and would be useful, and it's not clear if they are included:
>
> WinDrawTruncChars
> ChrEllipsisChr
> ChrNumericSpace
Those aren't in the IntlGlue library. WinDrawTruncChars is a new API
routine in the rom, which does the right thing - but isn't magic; it is
just finding the width of the string and drawing the appropriate number of
characters.
The other two are in fact macros which are now in Chars.h - and I've pasted
their definitions at the bottom of this note to show you what they do. It
just encapsulates the check for the rom version, nothing magic. Obviously,
caching the result is a good idea if you need to use this character
repeatedly.
>... is IntlGlue.lib open to pre-release feedback like the docs are?
Well, sort of but not really... true, it hasn't shipped yet, but moving
things and out isn't in the scope of what we were intending to do, mainly
since we're trying to get it shipped asap :-)
-David Fedor
Palm Developer Support
// Macros to determine correct character code to use for drawing numeric
// space and horizontal ellipsis.
#define ChrNumericSpace(chP) \
do { \
ULong attribute; \
if ((FtrGet(sysFtrCreator, sysFtrNumROMVersion, &attribute) == 0) \
&& (attribute >= sysMakeROMVersion(3, 1, 0, 0, 0))) { \
*(chP) = chrNumericSpace; \
} else { \
*(chP) = 0x80; \
} \
} while (0)
#define ChrHorizEllipsis(chP) \
do { \
ULong attribute; \
if ((FtrGet(sysFtrCreator, sysFtrNumROMVersion, &attribute) == 0) \
&& (attribute >= sysMakeROMVersion(3, 1, 0, 0, 0))) { \
*(chP) = chrEllipsis; \
} else { \
*(chP) = 0x85; \
} \
} while (0)