G'day Jim,

You might like to try something like the following :

...
    RectangleType       rectInvert ;
    UInt16                    nRadius = 0 ;     0 = square corners

    rectInvert.topLeft.x = 0 ; // Topleft "x" co-ord
    rectInvert.extent.x = 50 ; // width
    rectInvert.topLeft.y = 0 ; // Topleft "y" co-ord
    rectInvert.extent.y = 50 ;   // height

    WinInvertRectangle(&rectInvert,nRadius) ;
...

That will invert a 50x50 pixel box with a top corner located at 0,0.
If it is particular control you want to invert the pixels for, you can dig
down through the control's data structure and pull out its rectangle
co-ords.

This technique has worked really nicely for me in the past.

Regards,
CSE

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jim
Duffy
Sent: Tuesday, 1 August 2000 11:59 AM
To: Palm Developer Forum
Subject: switch controls from black to white


Can anyone point me to how I could change the text of a label control and
the color of a button control (and text) from black to white?

I would like to put it against a dark background.

Thanks a lot,

Jim




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

Reply via email to