Use icons of different shapes for push button in AppDesigner
28 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hello,
I would like to use icons of different shapes for some push buttons in my app simply for improving the visual aesthetics and user experience. For example, icons like MATLAB's run button which is a green triangle, but not a green triangle in a rectangular/square box. I tried using the button property Icon as described here: https://www.mathworks.com/help/matlab/ref/matlab.ui.control.button-properties.html. But this simply puts the picture of the icon inside the rectangular push button. I would like something like this (with the gray space here being the canvas, not a box containing the icon)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/791239/image.png)
Appreciate any inputs.
Thanks!
3 comentarios
Respuestas (1)
Sean de Wolski
el 6 de Nov. de 2021
Editada: Sean de Wolski
el 6 de Nov. de 2021
You could use a uiimage instead. Then set it's ImageClickedFcn instead of ButtonPushedFcn callback.
0 comentarios
Ver también
Categorías
Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!