Datasheet
Page 21
Select ButtonRound1 component from the dropdown list in the Components section of the Object
Inspector window. Double click it’s OnClick property to create and associate corresponding function.
Type the following line of code in the body of the function using the editor of User Code window:
“DrawScreen(&Screen2);”. The code will be executed when the button is clicked, thus invoking the
drawing of Screen2. So, when we click the button on the fi rst screen it will take us to the next screen,
and when we click the button there it will return us to the initial screen.
Add “OnClick” event code to ButtonRound1