but in every case, I have a blank 200x200 square.
I saw in component-explorer than this case isn’t handled.
So, is there a way ?! Do I need to setup something on the hxml (like --resource …?)
On the same note, how do you debug this ? it seems compiler doesn’t complain if name of resource is wrong or not…
So, there are two “types” of image resources in haxeui (kind of). The first is specific to the target framework, the second is unspecific and can be used by any backend, basically, for the second type haxeui turns haxe resources in a bunch of bytes and then turns them into the format that is correct for the backend, this is there because haxeui-core (and themes) might want to use images without having to package them in different ways for each backend.
So in the case of hxwidgets they are actually one and the same, ie, haxeui-core resources are haxe resources, and hxwidgets resources are haxe resources also, so as you say, you would need to package them with the --resource flag in your app.
However, there is an easier method (which haxeui-core uses), and that is to use a haxeui module, this essentially allows you to package a load of resources for you recursively, more information here: https://github.com/haxeui/haxeui-guides/blob/master/modules.md
Yeah, method 1 and 2 look right to me, keep in mind that the module.xml has to be in your classpath, not your project root (your project root may be in your class path, but it also may not be - its the -cp flag in your hxml)
Can you paste a minimal code example / project so i can just run it and see, its a pain sometimes creating a new project to try and match whatever you are doing, and sometimes i might not be matching it at all (since im guessing).