cancel
Showing results for 
Search instead for 
Did you mean: 

Button vs. Clickable Icon

CPaye.1
Associate III

In terms of memory, performance, etc., is it preferable to implement a button or clickable icon?

I assume that since a button is made of two images that a clickable icon is marginally more efficient.

In my specific application, due to some constraints, I am using something other than a clicked image to indicate a clicked state, so storing two different images in memory is not a concern.

All of the action would happen when the clicked widget was released.

Thanks.

2 REPLIES 2
Romain DIELEMAN
ST Employee

Hi,

To be fair there definitely wouldn't be a huge difference between the two, as like you said the button is made of two images when the clickable icon is made of one. If you used a box widget instead of an icon then there would be a small difference (negligible).

If you are trying to optimize your project I would maybe look elsewhere :grinning_face_with_sweat:.

/Romain

Thanks for the confirmation @Romain DIELEMAN​ ​ . That makes sense.