I need a color palette for 16 colors. When the device has 8-bit graphics, I want to show push buttons with 16 different colors. When the user selects a color, I'd like the border around the selected button to darken. If the device has less than 8-bit graphics, I'd still like to show all 16 buttons (E.g., for 1-bit graphics, there will be 8 'white' buttons and 8 'black' buttons.)
I created a grid of 16 push buttons and used blank bitmaps for the the buttons as specified a bitmap for 1-, 2-, 4-, and 8-bit graphics. On of my concerns is it seems like I'm wasting resources by declaring so many bitmaps for my colors (16 x 4 = 64 bitmaps). Also, I'd like to change the behaviour of the button inverting when selected -- inverting changes the color. Rather, I'd like to darken the border of the selected push button and leave it's bitmap alone. My questions are: 1. Is using push buttons the way to go, or is there a better way to make my palette? 2. If push buttons is a good approach, how can a draw them with thick borders when selected? Thanks! Rich -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
