Reference MWAPI

This section focuses on the attributes available to describe characteristics of choices assigned to gadgets in the choice category. These attributes are maintained as descendants of item and citem and ritem subscripts of the CHOICE attribute. The CHOICE attribute described in the Gadget Attributes section and Table 5.2 list the gadget types that can use these attributes. Example 5.3 shows the syntax for a Choice attribute for nontable gadgets, and Example 5.4 shows the syntax for table gadgets.
^$W(<span class="emphasis"><iwindow name</i></span>,"G"<span class="emphasis"><i,gadget name</i></span>,"CHOICE",<span class="emphasis"><iitem, choice attribute)=value</i></span>
^$W(<span class="emphasis"><iwindow name,</i></span>"G"<span class="emphasis"><igadget name,</i></span>"CHOICE"<span class="emphasis"><iritem, citem,choice attribute)=value</i></span>
The first three subscripts in Example 5.3 and Example 5.4 are as discussed in the Creation and Modification section. The fourth subscript is the CHOICE attribute keyword. The item subscript of Example 5.3 is the subscript of a choice assigned to the gadget. The ritem and citem subscripts in Example 5.4 are the row and column subscripts of a choice assigned to the Table gadget. The choice attribute subscript in both examples is a Choice attribute keyword from Table 5.7. The value argument must specify a valid value from the domain specified for the respective Choice attribute. If an application attempts to assign a value for a Choice attribute that is not specified by its domain of values, an error will occur with a code of "M47." [4]
The MWAPI standard specifies three keywords...