[Gambas-user] Background/Foreground

Benoit Minisini gambas at ...1...
Wed Jul 9 23:09:18 CEST 2008


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




More information about the User mailing list