Skip to main content
Associate III
March 4, 2025
Question

how to enable clicked function if the clicked button is invisible ?

  • March 4, 2025
  • 2 replies
  • 967 views

since the background image is set well and I use a invisible button, the clicked event can't be triggered when i click the '1' button; but if I set the '1' button is visible , the clicked even can be triggered , how to modify this ?

 

 

 

miker_0-1741079867852.png

 

This topic has been closed for replies.

2 replies

GaetanGodart
ST Employee
March 4, 2025

Hello @miker ,

 

To create an invisible button, the simplest way is to add a flexButton is to make the visible box 0 in width and height.

Look at this tutorial to see how to implement such button.

 

If this comment answers your question, I invite you to select it as "best answer".

 

Regards,

Gaetan GodartSoftware engineer at ST (TouchGFX)
GaetanGodart
ST Employee
March 13, 2025

Hello @miker ,

 

Have you bene able to move forward on your project? Did the flexButton solution solve your issue?

 

Regards,

Gaetan GodartSoftware engineer at ST (TouchGFX)