Yes it is a debug rom.  It's my understanding the debug rom shows unusual colors, if 
you've set colors that aren't in the current pallete...as a way of letting you know 
that you're using out of bounds colors.

Basically i'd just like to know what the proper way to set ui colors is for a given 
rgb value.  

Now, if I set the colors before FrmDrawForm the debug row correctly shows my UI, as do 
the actual devices for the most part.  One of them has two colors that are off 
(completely different colors) however.

If I set colors after FrmDrawForm the debug rom shows weird colors as do the devices.

I'm assuming this is all due to the lack of my understanding about setting the index 
in the RGBColorType structure.

Any help appreciated, thanks!


"Kevin OKeefe" <[EMAIL PROTECTED]> wrote:

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




__________________________________________________________________
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/

Reply via email to