I am developing an app for low literacy users. I have three buttons on the screen which I want read to the user. I want to show which button corresponds to the instructions, so I want to turn the button red while the corresponding audio plays.
Here is my code...
As listed, the code doesn't change the color of the button. However, if I uncomment the "Msgbox" line, it changes the button color to red.
Any idea what is happening here?
Here is my code...
B4X:
AgreeButton.Color = Colors.Red
'Msgbox("turn it red", "Notification")
sp.Load(File.DirAssets,"agree.mp3")
sp.Play
AgreeButton.Color = Colors.Gray
As listed, the code doesn't change the color of the button. However, if I uncomment the "Msgbox" line, it changes the button color to red.
Any idea what is happening here?