Hi Ralf, > First, there is also an appearance "label" in our appearance theme, that > sets "wrap" to false in the "initial" part. This does not explain why > wrap is set to true - or am I again missing something? The defaultValue of the property wrap is true (-> defined in qx.ui.basic.Label). So for every property which is declared in the original appearance (->"label") and NOT declared in the new appearance (->"link-ref") the setAppearance-method will reset the property to its defaultValue. That's why the property wrap is set to true, rather than using the value of the appearance "label" or using the user value.
The reason for this behaviour is, that qooxdoo (in the 0.6.x codebase) is not aware of multi-values for properties (qooxdoo 0.7 will support multi-values for properties. So there will be no overwriting of user-values with appearance values). To start from zero it uses the defaultValue for all properties which are defined in the original appearance, but not in the new one. > 1. By defining a new appearance in the appearance theme, I expect to > start from zero, otherwise I could inherit properties using > vTheme.initialFrom("label") The appearance system looks for the original appearance for this widget. By default the appearance for any label widget is "label". So this original appearance is overwritten with the values from the new appearance. And again, all properties which are declared in the original one and NOT in the new one are falling back to default. To start from zero ;-) > 2. By calling a method named "setAppearance", I expect to overwrite the > old property, hence also the old behavior, otherwise the method should > be called "mergeAppearance". You overwrite the old property with the property value of the new appearance (if defined). The appearance are not merged, it's a selective overwriting of property values defined in both appearances and a resetting of all properties from the original appearance which have no counterpart in the new one. I hope, now the appearance system has become a little bit clearer or did I confuse you even more? ;-) cheers, Alex ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel