> >> > >> > 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 >>> > > >>> > > >>> > > 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 I am using Mandriva widget style. I have tried Plastik, and the problem is exactly the same : no way to change the color of text in a button, except to black. This is strange, since at startup, the text color is as specified in the form editor. But whenever I try to change it by
"b.background=my_color" the color turns to black. Could this be a conversion problem, since my program (class+form) was initially written for Gambas 1, and then converted to Gambas 2 ? I made no changes in the form, since it works, apart from this problem. -- Serge Bouc ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user