cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Gauge with Button

Jtron.11
Senior

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 1
LouisB
ST Employee

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,

Louis BOUDO
ST Software Developer | TouchGFX