TCPmaker : Visual Tour    Sending Messages to Screen Controls  

The Back and Next buttons are set in momentary mode: property m = "momentary". Each of these two buttons has property rb = 1 (the default value), no value is assigned to the g property, and a dedicated Integer Variable is associated with the (i property of) the button.  As shown below, the i property of the Next button is set to the variable whose name is Next.

When the Next button is pressed, the following things happen:

  • The value of this button's rb property is assigned to the Integer Variable named Next, which associated with the button
  • The Next variable is sent to the device over the ethernet
  • The Next variable's Receive Event handler, in mtGen.c, is called automatically.

We added code in the Next variable's Receive Event handler (shown on the next page) that advances to the next page of our TCPmaker layout on the PC browser.


11 of 33
Copyright Notice and Author Information