I have a simple function that I use to set an Item's color:

    void SetItemColor (UIColorTableEntries item, UInt8 color)
    {
         if (ColorDepth() >= 8)
         {
              RGBColorType rgb;
              WinIndexToRGB (color, &rgb);
              UIColorSetTableEntry (item, &rgb);
         }
    }

When I start my app I init my colors:

     SetItemColor (UIFormFill, cgBackColor);
     SetItemColor (UIObjectFill, cgButtonFillColor);
     SetItemColor (UIObjectSelectedFill, cgButtonSelectedColor);
     SetItemColor (UIMenuFill, cgMenuFillColor);
     SetItemColor (UIDialogFill, cgBackColor);
     SetItemColor (UIAlertFill, cgBackColor);

Everything works great.  The problem is that at runtime I want to change the
color of certain dialogs to be different than the above specified colors.
Before the dialog popups up I change the above colors to be what the want
and then restore the colors after the dialog finishes.  The problem is that
only part of them take.  Is there something I need to do beside calling
UIColorSetTableEntry to make my colors take effect?

Thanks,
Rich


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

Reply via email to