Skip to main content
Jtron.11
Senior
March 20, 2025
Question

Custom Gauge with Button

  • March 20, 2025
  • 1 reply
  • 337 views

Hi all,

Can anyone please give me advice how can I implement a custom Gauge:

That will be used my custom image and needle 

That can be also a button, that when I click in the middle of the gauge, the gauge will change image to glowing as it is a button and turn off the gauge glowing as the button off for another click.

 

Thank you so much.

1 reply

ST Employee
March 20, 2025

Hello @Jtron.11 ,

There is a gauge widget in TouchGFX that you can use with your custom images.
For the glowing behavior, you can add a clicklistener to your gauge. Please refer to this tutorial : How to TouchGFX: create a custom clickable area with an invisible widget. Then to be able to change image after the click, you can refer to that post Solved: change image at runtime - STMicroelectronics Community.

I hope it helps,
Best regards,