gambas-user-request@... a écrit :
> Message: 4
> Date: Wed, 9 Jul 2008 23:09:18 +0200
> From: Benoit Minisini <
gambas@...>
> Subject: Re: [Gambas-user] Background/Foreground
> To: mailing list for gambas users <
gambas-user@...>
> Message-ID: <
200807092309.18732.gambas@...>
> 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@...> 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.
-------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/gambas-user