This is more of a C question, really...
FntDefineFont expects (as documented) that the 1st argument should have a
type of FontID.
This is the definition of a FontID, from Palm's Font.h:
enum fontID
stdFont = 0x00, // Small font used for the user's writing. Shows a
good amount
boldFont, // Small font. Bold for easier reading. Used often for
ui.
largeFont, // Larger font for easier reading. Shows a lot less.
symbolFont, // Various ui images like check boxes and arrows
symbol11Font, // Larger various ui images
symbol7Font, // Smaller various ui images
ledFont, // Calculator specific font
largeBoldFont, // A thicker version of the large font. More readable.
fntAppFontCustomBase = 0x80 // First available application-defined font ID
};
typedef enum fontID FontID;
The use of the enum allows you to code things like "FntSetFont(symbolFont)."
To do what you want, YOU, not the compiler, must EXPLICITLY tell the
compiler that the value you are submitting is a FontID, thus:
FntDefineFont((FontId)129, fontp);
Otherwise, the compiler implicitly casts 129 as an int.
This is called "type-casting," I believe. I have found that it saves a lot
of grief to have my C skills current when working with this Palm stuff.
Peter Hribar <[EMAIL PROTECTED]> wrote in message
news:7994@palm-dev-forum...
>
> What I'm doing wrong, to be punished with
>
> >>Illegal implicit enum conversion from 'int' to 'fontID'<< in
> FntDefineFont(129,fontp);?
>
> Thanks, Peter Hribar
>
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html