Filter löschen
Filter löschen

Use icons of different shapes for push button in AppDesigner

32 Ansichten (letzte 30 Tage)
street_car
street_car am 5 Nov. 2021
Kommentiert: street_car am 6 Nov. 2021
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)
Appreciate any inputs.
Thanks!
  3 Kommentare
TADA
TADA am 6 Nov. 2021
Are you using app designer?
street_car
street_car am 6 Nov. 2021
Yes, this is with App Designer.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Sean de Wolski
Sean de Wolski am 6 Nov. 2021
Bearbeitet: Sean de Wolski am 6 Nov. 2021
You could use a uiimage instead. Then set it's ImageClickedFcn instead of ButtonPushedFcn callback.

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange

Produkte


Version

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by