On Tue, 4 Dec 2001, Brian 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.

  you only need to check for palm os 3.0 for that API :)

> > ...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.

  unfortunately, if you want to have custom colors - you need to roll
  your own user interface controls :(

// az
[EMAIL PROTECTED]
http://www.ardiri.com/


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

Reply via email to