A question about creating a screen menu system
I am trying to make a menu screen system which I thought first would be trivial, but until I figure it out it isn't... There are radio buttons for selecting the wanted measurement and a start button. The idea is to send the chosen test ID to the Model.cpp, which will then send it to the FreeRtos task, which handles the message. So, if radio button 1 is selected and start button pressed the message is 0x01, and if it's #2, then the message is 0x02 and so on. The problem is how to combine this with the correct screen switching? The program should run the chosen test and then switch to the corresponding screen showing the results. TouchGFX generates screen transitioning functions in the base class so should I modify that (even it has DO NOT MODIFY text with write-protection)? Any help how should I implement this would be appreciated.