On Tue, 4 Dec 2001, Johnathan Smith wrote: > Can someone please tell me how to tell if the palm can handle the > color...
SysGetROMVersion() to test for Palm OS 3.5 or greater, then WinScreenMode() to see how many color bits are supported. If you get 8 or more bits, that means color support. Less than that is usually greyscale or black and white. > ...and also how do I make the list lines have diff colors Use a custom list draw function (see LstSetDrawFunction()). You need to be careful to set the colors back, and also check for selected/unselected states for the items, which Palm OS sets certain colors for before calling your draw function. If you check the Palm OS SDK Reference and look for info on ListDrawDataFuncType (in the section on lists) you'll see how to do that check. ---------------------------------------------------------------------- Brian Smith // [EMAIL PROTECTED] // http://www.arthurian.nu/ Software Developer // Gamer // Webmaster // System Administrator -= We are dyslexic of Borg - Your ass will be laminated =- -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
