Hi Roman, Roman Schmid wrote: > This works very well for textfields and textarea elements. When it comes > to a date field for example, i get a lot of "Missing-appearance" > warnings, since all the sub-elements of the DateField are missing. The datefield is a special style comboBox widget. So it holds a textfield, a button and a list as sub-control widgets. If you only want to change the appearance of the textField sub control you have to write
--snip-- myDateField.getChildControl("textfield").setAppearance("textfield-invalid"); --snip-- and you're done. Since you tried to change the appearance at the datefield widget itself the appearance manager does complain about the missing appearances. Take a look at the Modern appearance theme at the entry "datefield" and you'll see the differences to the normal textfields. cheers, Alex > Roman Schmid wrote: >> Hi Alex >> >> It works like a charm. Awesome! >> I feel a bit dumb, since this is actually quite well documented... i >> guess it's because i have a headache already. >> >> Next time i'll try harder, i promise :) >> Thanks a lot >> - Roman >> >> >> Alexander Back wrote: >>> Hi Roman, >>> >>> Roman Schmid wrote: >>>> Maybe somebody could be so kind and point me into the right direction. >>>> I'd like to have some special appearance for a label, let's name it >>>> "requiredlabel". There i would define color and font. That's what i >>>> tried (just for testing): >>>> >>>> qx.Theme.define("myapp.theme.Appearance", { >>>> extend : qx.theme.modern.Appearance, >>>> >>>> appearances : { >>>> "requiredlabel" : { >>>> "textColor" : "#ff0000" >>>> } >>>> } >>>> }); >>>> >>>> Then in the code: >>>> mylabel.setAppearance("requiredlabel"); >>> The code for the appearance has to be >>> >>> --snip-- >>> qx.Theme.define("myapp.theme.Appearance", { >>> extend : qx.theme.modern.Appearance, >>> >>> appearances : { >>> "requiredlabel" : { >>> style : function(states) >>> { >>> return >>> { >>> "textColor" : "#ff0000" >>> } >>> } >>> } >>> } >>> }); >>> --snip-- >>> >>> >>> This should work. >>> >>> cheers, >>> Alex >>> >>> ------------------------------------------------------------------------------ >>> Check out the new SourceForge.net Marketplace. >>> It is the best place to buy or sell services for >>> just about anything Open Source. >>> http://p.sf.net/sfu/Xq1LFB >>> _______________________________________________ >>> qooxdoo-devel mailing list >>> qooxdoo-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >>> >> ------------------------------------------------------------------------------ >> Check out the new SourceForge.net Marketplace. >> It is the best place to buy or sell services for >> just about anything Open Source. >> http://p.sf.net/sfu/Xq1LFB >> _______________________________________________ >> qooxdoo-devel mailing list >> qooxdoo-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >> > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel -- Alexander Back Core Development::Webtechnologies alexander.b...@1und1.de fon +49 721 91374 8047 http://www.1und1.de 1&1 Internet AG Ernst-Frey-Straße 9 76135 Karlsruhe Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas Gottschlich, Robert Hoffmann, Markus Huhn, Hans-Henning Kettler, Dr. Oliver Mauss, Jan Oetjen Aufsichtsratsvorsitzender: Michael Scheeren Amtsgericht Montabaur / HRB 6484 ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel