Hi Vincent,

first of all, sorry for the late answer.

There is no other way to access the icon of an Atom-based widget than to 
use getChildControl, but it should be fine for what you're doing.


Regards,
Daniel


Vincent Vandenschrick schrieb:
> Hi list,
> I'm quite new to Qooxdoo but I'm trying hard...
> I was wondering if there was some best practice for dynamically resizing 
> icons for Atom based components, windows captions, and so on. For 
> instance, I have a remote bank of single sized images that I access 
> through http and I would like to re-size them according to the component 
> they will be used as icon for.
> As of now, I found a quick solution that queries the component for its 
> inner Image component and size it, e.g. :
> 
>       button.getChildControl("icon").set({
>         scale : true,
>         width : 16,
>         height : 16
>       });
> 
> Reading the doc, the getChildControl method should rather be used by the 
> component itself and I understand that it somehow breaks encapsulation 
> to use it from outside. Is there a cleaner way of achieving this ?
> 
> Thanks,
> Vincent
> 


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to