Hi Jim,

I am myself still trying to figure out how to set some attributes.

However I think you can get to the font of a button by using getLabelObject()


  var btn = new QxButton("MYBUTTON","");
  with (btn){
    setTop(50); setLeft(10); setWidth(80); setHeight(20);
    setBackgroundColor(new QxColor("green"));  // does nothing - why?
    setColor(new QxColor("red"));              // sets font color
    getLabelObject().setBackgroundColor(new QxColor("yellow"));
                                               // sets FontBG Color
    getLabelObject().setFont("16px 'MS Sans Serif' bold");
                                               // sets Font
        };

I would like to know how to change the color of a button.
Any idea anyone?

Cheers,

Ralf

Jim Hunter wrote:
I have been trying to change the font on a QxButton but am having no luck. I saw a post that suggests that one could do a getLabel() then apply a font to that. I tried and it fails, the code stops processing with setFont() is not a function error. I can't use CSS to do this (unless it's inline), so is there a way in script to change the font of a button?

Thanks,
Jim


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to