I was using normal buttons to go to other scenes in the app, but the client wants the buttons to have images on them, so how do I create a image button?
Mike
I was using normal buttons to go to other scenes in the app, but the client wants the buttons to have images on them, so how do I create a image button?
Mike
Hello Mike,
You have two possible ways, for example, you can use buttons' icons, or you can use an Image control which can act like a button thanks to their Click and other events.
Hello,
I forget another possible way to do it: use an HTML IMG tag in the "Text" property of the button, something like:
Suposing you previously add a "Ninja.png" image using the App's Files manager.
Set buttons' Text like this
button text
this will work!
but Set buttons' icon like this:
app/images/s1.jpg
does not work to me!
Hello Joshua,
Set buttons' Text like thisbutton text
this will work!
but Set buttons' icon like this:
app/images/s1.jpg
does not work to me!
That's because the Button's icon expected the name of a font icon (one of the included in App Builder) and not an image path. If you want to use an image in the button you can use the below code in the button's Text property/variable:
Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.
Este sitio utiliza "cookies" útiles para almacenar sus preferencias.