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
>
>
>
>
>
>
> -------------------------------------------------------------------------
> 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
>

-------------------------------------------------------------------------
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