2022-09-18 11:34 PM
I use stm32f767 and implement one button in screen
the reaction of the button such as change screen color or run functions not works
why?
2022-09-19 01:11 AM
Hello @Community member ,
Did you use interactions ?
On the screenshot attached, you can see on the top-right corner of the screen the "Interactions" menu.
There you can select the source (button in your case) of your interaction, and the action you want to execute after the event was triggered (change screen, hide widget, ..).
If you want to do something more complex after clicking your button than one of the actions I listed above, I will have to select the "execute C++ code" option. Then, in your ScreenView.cpp, you can use API functions to do what you want.
You can take a look at this article to understand better how it works. I also advice you to read the whole documentation of TouchGFX.
Hope this helps,
/Yoann
2022-09-19 01:13 AM
2022-09-19 01:16 AM
@Yoann KLEIN
I use interaction and in the simulator every thing is ok but on the board it doesn't work !
I am searching about 5 days and the problem hasn't solved.!
2022-09-19 01:32 AM
Hello,
Can you please share your project ?
/Yoann
2022-09-19 01:46 AM
2022-09-19 01:48 AM
I use breakpoint in Screen1View.cpp and it is not stopped at all in it.
2022-09-19 01:48 AM
@Yoann KLEIN
2022-09-19 07:59 AM
Are you sure , your touch panel work?
2022-09-20 12:07 AM
yes I can send the video if you want.