[Gambas-user] Background/Foreground (M0E Lnx)

serge bouc serge.bouc at ...402...
Thu Jul 10 01:09:14 CEST 2008


> gambas-user-request at lists.sourceforge.net a écrit :
> Message: 3 Date: Wed, 9 Jul 2008 16:05:37 -0500 From: "M0E Lnx" 
> <m0e.lnx at ...626...> Subject: Re: [Gambas-user] Background/Foreground 
> To: "mailing list for gambas users" 
> <gambas-user at lists.sourceforge.net> Message-ID: 
> <1f1e8c1b0807091405j327d1eb6j73b35b8f194330d5 at ...627...> 
> 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 <serge.bouc at ...402...> 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.





More information about the User mailing list