Hi Karol, Grykar wrote: > Is there any way to check when is the image (qx.ui.basic.Image) loading > process on the layout finished ? > I would like to check position and size of the image. The image is added to > HBox layout and is centered. So the position of image depends on size of > image and is known when image is loaded on the layout. The answer to your question depends on what images do you load. Are these images external ones? If so, you can use the "qx.io2.ImageLoader" class to get the size and the loading status.
--snip-- var imageSource = "http://example.com/myImage.png"; var width = qx.io2.ImageLoader.getWidth(imageSource); var height = qx.io2.ImageLoader.getHeight(imageSource); var loaded = qx.io2.ImageLoader.isLoaded(imageSource); --snip-- If you use internal images (the ones which are managed by qooxdoo) you can use the "ResourceManager" class to obtain infos. --snip-- // you need to resolve the image source first var resolvedImage = qx.util.AliasManager.getInstance().resolve("icon/32/places/folder-open.png"); var loaded = qx.util.ResourceManager.has(resolvedImage); --snip-- Otherwise you can use the "appear" event for the image widget to check if the widget is visible. I hope this will help you further, otherwise let us know some more details what you like to achieve. 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
