[Gambas-user] Re : Background/Foreground (Benoit Minisini)

serge bouc serge.bouc at ...402...
Thu Jul 10 01:15:40 CEST 2008


gambas-user-request at lists.sourceforge.net a écrit :
> Message: 4
> Date: Wed, 9 Jul 2008 23:09:18 +0200
> From: Benoit Minisini <gambas at ...1...>
> Subject: Re: [Gambas-user] Background/Foreground
> To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
> Message-ID: <200807092309.18732.gambas at ...1...>
> Content-Type: text/plain;  charset="iso-8859-1"
>
> On mercredi 09 juillet 2008, M0E Lnx wrote:
>   
>> > 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
>>> > >
>>> > >
>>>       
> I use Plastik, and setting the background or the foreground color of a 
> button works as expected. So I think it is a problem in the widget 
> style you use. Which style do you use?
> -- Benoit Minisini
>   
Thanks for your answer.
I confess I never heard of Plastik ... What is this ?
As for the widget style, I am far from an expert.
I use the QT component, but I am not sure
that's what you mean by "widget style" ?

Serge.






More information about the User mailing list