Well, you could use a gadget or window instead.  I wrote a really 
simple drawing program that took a big rectangle and either set the 
background to black, or to white, and inverted the foreground 
color.  This program only works on black and white screens, though.

Here's how you'd change the font of text not on a button:
IndexedColorType WinSetForeColor(IndexedColorType foreColor)
or
IndexedColorType WinSetTextColor(IndexedColorType textColor)

This function only works if you've defined a window object on your
form, and then you can set the background or foreground to whatever
color you want.  I couldn't get these two to work on my old b&w
only screen, but I think they'll work on any of the grayscale or
color Palms.  I had to use either WinDrawLine or WinEraseLine in 
black and white.

Hope that helps!
(You could use a gadget for the button, too...that might work also)

-Rus

>-----Original Message-----
>From: Jim Duffy [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, August 02, 2000 4:26 PM
>To: Palm Developer Forum
>Subject: Re: switch controls from black to white
>
>
>Thanks for the help,
>
>But what I really am trying to do is simply make the text of a 
>label control
>and invert it from black to white.  Its for an About dialog 
>which already
>has a form bitmap in the background of a dark picture, so I 
>want to content
>to come out in white so it is more readable.
>
>your suggestion would work for the OK button only, right?
>
>thanks again in advance.
>
>Jim
>
>Nesse, Rustin <[EMAIL PROTECTED]> wrote in message
>news:19436@palm-dev-forum...
>>
>> Well, it's a fairly basic operation.  You put a button on a form,
>> make a bitmap with Paint or something, create a bitmap resource, copy
>> bitmap over into a bitmap editor, then put it on top of the button.
>> If you're developing for the color units, then you should use the
>> bitmap button resource and library functions that are a part of the
>> SDK 3.5.
>>
>> -Rus
>>
>> >-----Original Message-----
>> >From: Jim Duffy [mailto:[EMAIL PROTECTED]]
>> >Sent: Tuesday, August 01, 2000 1:20 PM
>> >To: Palm Developer Forum
>> >Subject: Re: switch controls from black to white
>> >
>> >
>> >Could you elaborate?
>> >Nesse, Rustin <[EMAIL PROTECTED]> wrote in message
>> >news:19400@palm-dev-forum...
>> >>
>> >> Bitmap buttons!  =)
>> >>
>> >> -Rus
>> >>
>> >> >-----Original Message-----
>> >> >From: Jim Duffy [mailto:[EMAIL PROTECTED]]
>> >> >Sent: Tuesday, August 01, 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/
>>
>>
>
>
>
>-- 
>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