> [EMAIL PROTECTED] a écrit :
> Message: 3 Date: Wed, 9 Jul 2008 16:05:37 -0500 From: "M0E Lnx" 
> <[EMAIL PROTECTED]> Subject: Re: [Gambas-user] Background/Foreground 
> To: "mailing list for gambas users" 
> <gambas-user@lists.sourceforge.net> Message-ID: 
> <[EMAIL PROTECTED]> 
> Content-Type: text/plain; charset=ISO-8859-1 instead of using the 
> background and foreground, try using the Backcolor and Forecolor 
> properties b.backcolor = color.selected b.forecolor = color.black On 
> Wed, Jul 9, 2008 at 3:57 PM, serge bouc <[EMAIL PROTECTED]> wrote:
>> > Hello Gambas,
>> >
>> > Pardon me for asking again this question :
>> >
>> >    b is a button, with text.
>> >   "b.background=my_color"  works fine : b is now surrounded with "my_color"
>> >   "b.foreground=my_color"   turns text on b to black, whatever my-color.
>> >
>> > What am I missing ?
>> >
>> > Thanks for any help.
>> > Serge.
>> >
>> > gambas2/Mandriva 2008/kde 3.5
Thanks for your answer.
I am not sure I unsterstand right : I have tried
b.backcolor=my_color
It works fine as well.

But
b.forecolor=my_color
again turns text color to black, whatever my_color...
Same thing with
b.forecolor=color.Red.
(it works fine with color.Black instead... ;-) )

I'm not surprised : I remember reading in  gambas documentation
that "forecolor" is a synonymous for "foreground".

Serge.


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to