Reference MWAPI

This section demonstrates how to create and use fourteen of the fifteen gadgets described as standard by the MDC's version 1.1 specification for the MWAPI. (The GENERIC gadget is described in the Implementation section of the next chapter.) The different gadget types are grouped into the categories described in Table 5.2. Graphical figures of each gadget are presented followed by the code that created the object, and description of the code and use. Concepts covered in earlier chapters are used throughout these examples. For example: the Long List Box gadget demonstrates the concept of stacked ESTARTS described in Chapter 2, and the Event SSVN is referenced numerous times to allow the reuse of code.
Even though the parent window of each gadget is created by default (by using default values), when the gadget is created the parent windows used in these examples have explicitly defined attributes. If these attributes are not explicitly defined, the size of the parent window will be large enough to display the gadgets defined for it at the time of its creation.
Certain output statements use the M WRITE command so the reader can relate them to legacy code. Imagine opening an MTERM window and redirecting the output to the device.
The parent window's attributes for each gadget is shown in tag+2 ? 5, where tag is the name of the tag containing the attributes for the gadget being discussed. The syntax used is similar to the syntax that created window PARENT in...