All the questions you have asked have been in the Palm OS Companion. Please read that stuff before posting questions here.
You're code that you put below is not using custom drawing; You need to register a callback list draw fuction using LstSetDrawFunction. IN there you will use the Window and Font manager API calls to do your drawing with different colors and whatnot. -----Original Message----- From: [EMAIL PROTECTED] [mailto:bounce-palm- [EMAIL PROTECTED] Behalf Of Saurabh Agarwal Sent: Thursday, July 15, 2004 10:43 PM To: Palm Developer Forum Subject: Re: Change font of list item Hi I am drawing my list dynamically. Is there any method to change color and fonts of specific item in the list??? "Saurabh Agarwal" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am using following code: > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ListType* pList = 0; > Char** pListItemsStrings; > > pList = (ListType*)GetObjectPtr(nListID); > LstSetListChoices(pList, pListItemsStrings, nItemsNum); > LstDrawList(pList); > LstSetSelection(pList, 0); > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Here I am passing the List ID (from Rsc.h file), array of strings and no of > items in the lsit. This dynamically adds the items into the list and draw > the list. > > Now which method I hace to use? Palm OS API does not contain any LIST > related method for changing font and color of list items. > > Thanx for your reply. > > > "Ben Combee" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > At 07:42 AM 7/15/2004, you wrote: > > >Hello, > > > Is there any method for changing the font or color of one of the > list > > >items in the list? > > > > You could do this using a custom drawn list, since you could manually > > change the font and color before drawing an item yourself. However, Palm > > OS doesn't directly support this. > > > > > > -- Ben Combee, DTS technical lead, PalmSource, Inc. > > Read "Combee on Palm OS" at http://palmos.combee.net/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
