[Gambas-user] Background/Foreground

M0E Lnx m0e.lnx at ...626...
Wed Jul 9 23:05:37 CEST 2008


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
>
>
>
>
>
>
> -------------------------------------------------------------------------
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>




More information about the User mailing list