Button background is filled by the theme. In case that you are using
modern theme it's an image. If you need your own backgrounds you need
to write custom appearance for the widget. You can inherit your own
button and refine the appearance property (in this case you also need
to inherit the qooxdoo theme).

In short, it's not easy to override it, because it's not simple
background, but complex image.

On Sat, Mar 6, 2010 at 3:19 PM, [email protected]
<[email protected]> wrote:
> i create a button
>
>                this.button = new qx.ui.form.Button("<").set(
>                    {
>                    allowStretchX         : true,
>                    allowStretchY        : true,
>                    minWidth                : 12,
>                    width                        : 12,
>                    padding                    : 0
>                    });
>
> and then i try to add  some text and backgroundcolor
>
>                    this.button.setBackgroundColor("#ff0000");
>                    this.button.setLabel("OK");
>
> The text is changed but the bckgroudnColor dont changed.
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>



-- 
Best regards
- Petr Kobalicek <http://kobalicek.com>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to