You must find the exact place in memory where the list font is stored -
that is, where the list is taking it. On the Tungsten size, I don't know
much cause I don't own one yet, but the method on old OSs is writing the
byte at offset 22: (just in case you don't know it already)

void LstSetFont(ListType *lt,FontID f)
{
 int pointer=(int)lt;
 pointer+=22;
 BYTE *point=(BYTE *)pointer;
 *point=(BYTE)f;
}
, where BYTE is defined as unsigned char.

"Stephen Beuzenberg" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> I must be missing something obvious. I'm trying to upgrade code to run on
> the Tungsten and that means not sneaking around behind the APIs, right?
>
> Well I can't find an API to set the font for lists, and the only font
> recognised in lists seems to be stdFont.
>
> I've set up a callback function to draw the text so I can play with the
font
> there, but the LstSetHeight( ) function and the 'item selected' coloring
> seem only to acknowledge the stdFont dimensions.
>
> Do I need to use something other than FntSetFont( ) to set the system
font,
> or is some other magic required to convince the list to display in another
> font?
>
> Any help greatly appreciated. Thanks in advance
>
> Stephen Beuzenberg         [EMAIL PROTECTED]
>
> IQWorks Ltd.
> New Zealand
>
>
>
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to