Datasheet

Page 20
It’s time to specify the function of the buttons when clicked. In order to do that we will add OnClick
events to both buttons. Locate the OnClick property of the ButtonRound2 in the Object Inspector
and double click it. The User Code window will appear. It will contain the function prototype that is
automatically associated with the click event. In the function body just type the following line of code:
“DrawScreen(&Screen1);”. This code will be executed when the button is clicked, thus invoking the
drawing of Screen1.
Add “OnClick” event code to ButtonRound2