TCPmaker : Visual Tour Sending Messages to Screen Controls |
When we run the finished project (after we have added the code to customize it, as we'll explain in this tutorial), we see that when we click on one of the buttons on the navigation panel on the left, we not only see that button light up, but we also see, displayed on the top line of the demo board's LCD display, a message that looks like this:
PageNum = 1
If we click the Back or Next button, the page also changes, the correct button on the navigation panel lights up, and the PageNum value displayed on the top line of the LCD display always displays the correct page number, in the range 0-4.
So, how did we get these navigation buttons to work this way?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |