A button isn't rendered as a real input, rather it is an atom, which is rendered with divs and an optional image. Probably you have a problem with encodings. Any Unicode char is displayable with the right encoding (and fonts). The new property system, should allow easily to override the styles set in the appearance.
Okan, Varol wrote: > > To the first however I can not find any docs for the 0.7.x branch to > change colors of individual buttons. I.e. I want a block of blue buttons > and a block of red etc. > > Also special chars do not show up as expected I.e. ± > > My guess is that the input tag in a form does not support for these > special html tags. ( I believe this is what qx.ui.form.Button is based > on ) > > Of course I can go brute force with qx.embed.HtmlEmbed and write a whole > new button class unless of course there is another way. > > Any help appreciated. > > Varol :) > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of dperez > Sent: Wednesday, April 25, 2007 10:36 AM > To: [email protected] > Subject: Re: [qooxdoo-devel] colorfull buttons & dynamic classes. > > > 1) You must use appearances, see the doc. Qooxdoo 0.7 has another > appearance that looks much better than the classic one > > 2) try something like: > > var object = eval('new '+classname); > > > Okan, Varol wrote: >> >> Guys, I want to create a calculator for Qx and I was wondering about > two >> things : >> >> >> >> * How would I create buttons which have different background >> colors >> * How can I display E.g. ± >> >> >> >> I guess qx.ui.form.Button is not the class to be using for this. Is >> there another button class I could use ? >> >> >> >> Also another very important question, I follow a strict naming >> convention for my classes and I want to create an instance of a class >> through E.g. >> >> >> >> var myObject = new ao.Application.test ( ); >> >> >> >> However I do not know which classes might be coming. All I have is the >> name of the class stored in a variable. How can I do this generic and >> dynamic ? >> >> >> >> I.e. the following code is unsuitable >> >> If ( className == "ao.Application.test" ) >> >> myObject = new ao.Application.test ( ); >> >> else if ( className == "ao.Application.Calc" ) >> >> myObject = new ao.Application.Calc ( ); >> >> >> >> etc. >> >> >> >> Thanks ... >> >> >> >> Varol :-) >> >> >> >> >> > ------------------------------------------------------------------------ > - >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> qooxdoo-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >> >> > > -- > View this message in context: > http://www.nabble.com/colorfull-buttons---dynamic-classes.-tf3645561.htm > l#a10181840 > Sent from the qooxdoo-devel mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------ > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > -- View this message in context: http://www.nabble.com/colorfull-buttons---dynamic-classes.-tf3645561.html#a10195714 Sent from the qooxdoo-devel mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
