Just this week I was permitted start using Code Warrior 7 at work, and I'm
seeing something that really puzzles me.
I use the following functions a lot:
static void SetFontAndDisplayText(
char * szText,
Int16 charsToDisplayCount,
int offsetFromLeft,
int Line,
FontID font
)
{
FontID prevFont = FntSetFont(font);
WinDrawChars(szText, charsToDisplayCount, offsetFromLeft, Line);
FntSetFont(prevFont);
}
void WriteThisText(char * szText, int offsetFromLeft, int Line, FontID
font)
{
SetFontAndDisplayText(szText, StrLen(szText), offsetFromLeft, Line,
font);
}
When I use them as follows:
char temp[10];
...
temp[1] = chrNull;
...
WriteThisText("?", 2, 20, largeBoldFont);
...
temp[0] = 0x15;
WriteThisText(temp, 2, 48, symbolFont);
it does exactly what I want when I use the Palm OS 3.1 Support directory,
but with the Palm OS 3.5 Support directory the calls of FntSetFont with a
font value unequal to stdFont always fail. Has anyone seen something like
that before? I'm feeling like the mistake I'm making ought to be soooo
obvious, but I'm just not seeing it at the moment .... :S
Sincerely,
Martin
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/