Take a look at LstSetDrawFunction - you provide a simple routine (see the function prototype in List.h) that the system calls whenever it needs to draw a row in the list. Your routine is passed the index of the row, the bounds in which to draw, and a pointer to the list's items. You just use the standard Window Manager draw API to provide the colors (WinPushDrawState(), WinSetBackColor(), WinPaintRectangle(), WinPopDrawState(), etc.
JB @ PalmSource on 8/29/02 3:01 PM, Robert Purcell at [EMAIL PROTECTED] wrote: > Hi Everyone, > > I have a program that contains a form with a list > and a vertical scroll bar. Currently, the list is > black letters on a white background. But, I would > like > to be able to have each item in the list on an > alternating colored background. > > For example, the first item would have a white > background, the 2nd a blue background, the 3rd white, > 4th blue, etc, etc...alternating every other item in > the list. This would make the list more easy to read. > I've seem this done in a lot of programs, but I'm > wondering if this feature is only available with > tables and not lists. Perhaps I should use a table > instead of > a list? -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
