Skip to main content
CPaye.1
Associate III
June 3, 2021
Question

Button vs. Clickable Icon

  • June 3, 2021
  • 2 replies
  • 1657 views

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.

This topic has been closed for replies.

2 replies

Romain DIELEMAN
ST Employee
June 4, 2021

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

CPaye.1
CPaye.1Author
Associate III
June 4, 2021

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