Can images for different densities be imported as controls?
Posted: Mon Apr 07, 2014 6:03 am
Hi fellow Livecoders,
If I've got it right, an image which is "imported as control" must be placed in a card, will become part of the stack itself, then everytime you need to use it (as icon, etc), just choose them. In the other side, a "referenced image" is created as a "New referenced control" (menu File) and it becomes a reference to an image file bundled with a standalone app. Is it right?
So I came across the "How do I support different screen densities?" tutorial which tells us to use referenced images with specific filenames for low density, high density, etc, so Livecode will automatically load the right image file in runtime according to the device's density.
Question is: is it possible to "import as control" different images (for different densities) and use them in the same way the tutorial teaches for referenced images? I mean, is there a similar naming/density convention and usage method for images directly imported to a stack?
Thank you!
Fabricio Rocha
Brasilia, Brasil
If I've got it right, an image which is "imported as control" must be placed in a card, will become part of the stack itself, then everytime you need to use it (as icon, etc), just choose them. In the other side, a "referenced image" is created as a "New referenced control" (menu File) and it becomes a reference to an image file bundled with a standalone app. Is it right?
So I came across the "How do I support different screen densities?" tutorial which tells us to use referenced images with specific filenames for low density, high density, etc, so Livecode will automatically load the right image file in runtime according to the device's density.
Question is: is it possible to "import as control" different images (for different densities) and use them in the same way the tutorial teaches for referenced images? I mean, is there a similar naming/density convention and usage method for images directly imported to a stack?
Thank you!
Fabricio Rocha
Brasilia, Brasil