2025-09-25 2:56 AM - edited 2025-09-25 3:57 AM
So if you have a radio button with a callback function set via TouchGFX on click selected, the code generated in the BaseView has a typo in setAction
It uses the function SetAction (with capital S) which is wrong
TO REPLICATE:
radioButton.SetAction(radioButtonSelectedCallback);
instead of
radioButton.setAction(radioButtonSelectedCallback);
On another note, no callback is called if the radio button is selected, even if seAction is manually fixed
Solved! Go to Solution.
2025-09-25 4:43 AM
Hi @JohanAstrup
I have opened and closed TouchGFX and deleted and re-added the radio button and now it worked correctly...
Maybe some sort of old cache from previous compilation or something.
2025-09-25 4:19 AM
Hello @nico23.
I have followed the steps you provided to reproduce the issue. However, I am unable to replicate it.
I have attached my test project, where setAction is correctly spelled, and the callback is received when running the simulator.
Are you sure you have not accidentally modified your RadioButtonGroup.hpp file in the framework folder? Alternatively, could the file in your TouchGFX installation folder, from which it is copied when you generate code, have been modified?
Best regards,
Johan
2025-09-25 4:43 AM
Hi @JohanAstrup
I have opened and closed TouchGFX and deleted and re-added the radio button and now it worked correctly...
Maybe some sort of old cache from previous compilation or something.