Your description of "funky colors" makes me wonder if you are on a debug rom.... If you are, I don't think you can expect to see your color changes correctly there....
Kevin -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 4:05 PM To: Palm Developer Forum Subject: Setting UI Colors question Hi, I'm trying to use UIColorSetTableEntry to set the rgb colors for a few UI components but it's not working out quite right. On one device I see them correctly, on another I don't. If i call them after FrmDrawForm, in pose it shows the funky colors indicating it couldn't set my requested colors them to a valid color. I couldn't discern from the docs if I'm supposed to set the index in the RGBColorType structure correctly before I call UIColorSetTableEntry, or do I just put NULL or 0 in this value? At the moment I'm passing 0 for the index. Does one irst need to call WinRGBToIndex with the rgb values to get the correct index, then pass WinRGBToIndex NULL for the index in RGBColorType? Because obviously I don't know the index if I'm calling that function.... These may be dumb questions but so far I haven't been able to get my colors to come out quite right and I think it's because I'm not understanding how to set them correctly. Fyi, before I set any colors, I'm setting the screen resolution and I'm waiting until after I've done FrmDrawForm to set the ui colors. I use a static boolean in my main form so I only do this once. Thanks very much for any help, Ty -- __________________________________________________________________ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
