Question
Popup with return value
Hi,
I'd like to have a popup in my app, in which the user can press "Confirm" or "Cancel".
I'm looking for a way to have my code written like this:
popup_res = show_popup();
if(popup_res == true){
/* user clicked on 'confirm'. do something */
}
else{
/* user clicked on 'cancel'. do something else*/
}Is there a way to do it?
I know that touchgfx is single threaded, so I think that I have to finish the function to refresh the screen.
But on the other hand, I know that GUI frameworks such as JavaFX are also single threaded, yet support this behaviour.
Thank you
