Hi Amit,
On Friday 06 March 2009 Amit Rana wrote:
> > Today ... that's the plan ;-)
> you guys are always on time. :-)
At least we trying hard to hit the release date and we're glad when we keep
the promise.
> It worked. Thanks.
> But, what confuses me is that if I comment the setDecorator() and put an
> alert with getDecorator(), it gives null. So, the decorator is already
> null (but that doesn't work and I have to again set it to null) ?? :-\
The thing is that the decorator is applied when the widget gets visible. If
you write
--snip--
textfield.addListener("appear", function(e){
alert(this.getDecorator());
});
--snip--
you get the right result "input".
> Anyhow, setting the decorator to null removed the borders too. So, I
> added a decorator and set its background.
> t.setDecorator(new qx.ui.decoration.Single(1,"solid","black"));
> t.setBackgroundColor("red");
Nice to see it worked out for you.
One more last hint: if you are using custom decorators just add them to your
own decoration theme. This way you can use them much easier for other widgets.
--snip--
// assuming the decorator is defined as "myDecorator"
myWidget.setDecorator("myDecorator");
--snip--
cheers,
Alex
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel