cancel
Showing results for 
Search instead for 
Did you mean: 

Example of a ClickListener?

Roger.ch
Associate III

How does this work with a ClickListener?

I have a view with 10 custom containers. How can I tell the view when a custom container has been pressed and which one? Do you have a simple example?

Thanks

Regards, Roger

1 ACCEPTED SOLUTION

Accepted Solutions
FBL
ST Employee

Hello @Roger.ch 

 

Did you check this? Mixins | TouchGFX Documentation 

You can find examples of implementation in Demos

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.


View solution in original post

3 REPLIES 3
FBL
ST Employee

Hello @Roger.ch 

 

Did you check this? Mixins | TouchGFX Documentation 

You can find examples of implementation in Demos

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.


Hi F.Belaid

Thank you very much for your tip. Unfortunately I had not found the example. But it looks good.

I will have a look at it tomorrow.

Best regards, Roger

 

Hello, I'm an amateur Touchgfx user.
I've accomplished many difficult tasks with Touchgfx, but I'm desperate for a very simple one.
I want to set an output port high for the duration of a keystroke. I used the ClickListener instructions in the program, but they didn't work. I'm using the Stm32h7b3i Evk, and the definitions in the base file don't match those on the https://support.touchgfx.com/docs/development/ui-development/touchgfx-engine-features/mixins page. The program is giving an error.
Could you please provide a link to a sample program?
Regards