>So changing UI colors is accomplished by changing
>the index used to draw a particular UI element?

Yes, you just say which index in the active palette is to be used for a
given UI object.  That's the way you specify colors for doing anything and
everything: by giving the index in the palette.


>Each method has it's own pros & cons, but the inability
>to create bitmaps that match the UI elements is a big con imo.

I agree that it'd be less work for you, but having the blitter and/or
window driver code know about the implementation of the UI controls would
break just about every rule of modularity ever written!

You might find that setting an appropriate foreground and background color,
and then drawing a one-bit bitmap, might let you get the desired results.
Or for a two-bit situation to "dim" some colors, create a two-bit offscreen
window containing your bitmap, then change its palette to match the
foreground/background/dimmed colors you want, then draw that to the main
screen.  I'm not sure which would be more efficient.

I think this might be a case in which you're wanting the OS to do all of
your coding for you... but we didn't want to let you get bored; you get to
help too! :-)

-David Fedor
Palm Developer Support



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to