Hi Keve, qx.ui.basic.Image can handle two kind of image resources [1] 1. managed images, which are known by the application through the generator (size, type, ...) 2. unmanaged images, which has to be loaded before knowing sizes and other properties
Managed ones are resources. They have to be get with a "pseudo relative" URL, which is more a kind of id than an real URL. That means that the resource folder is not part of the id/URL. Additionally you can also define aliases to refer to resource subfolders. Unmanaged image URL can be any kind of valid URL, also real relative URLs. Now the point is, that some developers in the past stumble on the managed image resource ids. They added often the resource folder path before the managed image id. Therefore we had to add such a warning to point the developer to his potential mistake. But please feel free to open an enhancement bug, if you desire. (Please check the bug list for the same issue before.) [1] http://manual.qooxdoo.org/devel/pages/desktop/ui_resources.html?highlight=resource Gruß Mustafa Sak Applications & Integration 1&1 Internet AG Ernst-Frey-Straße 10 DE-76135 Karlsruhe -----Ursprüngliche Nachricht----- Von: Keve Nagy [mailto:k...@safe-mail.net] Gesendet: Dienstag, 4. März 2014 21:22 An: qooxdoo Development Betreff: [qooxdoo-devel] keeps logging "try to load an unmanaged relative image" Good Evening qooxdooers! I just started a new standalone application in qx v3.5. Added a window, placed a stacked canvas on it, and placed an image on one of the canvases. The image does show up, everything else also works fine, but the console keeps logging a "try to load an unmanaged relative image: resource/myprojectnamehere/picturenamehere.png" every time the application is loaded. Application.js does include the usual /** * This is the main application class of your custom application "phdkerdoiv" * * @asset(phdkerdoiv/*) */ qx.Class.define("phdkerdoiv.Application", { extend : qx.application.Standalone, . code snippet at its top. And the image is displayed using var pic1 = new qx.ui.basic.Image("resource/myprojectnamehere/picturenamehere.png").set({alignX:"center", alignY:"middle"}); Nothing I haven't done in other standalone apps before. But this is the first time I see this message logged. What am I missing? How do I fix this so that the warning stops being logged each time the app loads? Regards, Keve Nagy * Debrecen * Hungary ------------------------------------------------------------------------------ Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. With Perforce, you get hassle-free workflows. Merge that actually works. Faster operations. Version large binaries. Built-in WAN optimization and the freedom to use Git, Perforce or both. Make the move to Perforce. http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. With Perforce, you get hassle-free workflows. Merge that actually works. Faster operations. Version large binaries. Built-in WAN optimization and the freedom to use Git, Perforce or both. Make the move to Perforce. http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel