fill and strings
Charles Goodwin <[email protected]>
| Newsgroups | gmane.comp.java.xwt.core |
|---|---|
| Organization | XWT Foundation |
| Message-ID | <[email protected]> |
At the moment you can pass two things to fill, a resource and a string. In XML this is determined automatically (as you have no option but to put them both in quotes). In JS, it is manual and this is causing problems: $box.fill = .resource or $box.fill = "#color" If .resource is an arbitrary value (ie calculated at run time), then you can only set it using a string (you can't create an arbitrary resource using .path.to.resource syntax) but I cannot get this to work. All of the following do nothing for me: $box.fill = ".resource"; $box.fill = "ibex..resource"; $box.fill = ibex[".resource"]; // which is the most likely $box.fill = ibex["resource"]; $box.fill = ibex["..resource"]; Am I doing something wrong here, or missing something? This also exposes another bug. If you pass an invalid color/resource to fill, there is no error generated. It just silently fails when it should be saying "color or resource X not found". -- - Charlie Charles Goodwin <[email protected]> Online @ http://www.charlietech.com