Reference MWAPI

The MWAPI specification defines twenty-one event type keywords for indicating events that can cause callback processing to occur for gadgets. The MWAPI specification makes allowances for implementers to specify event types, but implementation values are not guaranteed the portability of standard values. The character "Z" is reserved for the first character in an implementation keyword. The gadget type determines the event types it can use and respond to. Table 5.9 lists the event type keywords available for gadgets. Event type keywords are uppercase keywords that must be enclosed in quotes or assigned as a variable. Table 5.10 identifies the event type keywords to the gadgets that can receive events.
The keywords can be divided into three categories. The descriptions are discussed from the point of view of the applications user. All events listed can be triggered by an application.
| Keyboard: | The keywords in this category are initiated from the keyboard. |
| Pointer: | Events described by this category are triggered from the pointer device. |
| State: | This category is from events to the state or properties of the window. |
| Category | Attribute | Category | Attribute |
|---|---|---|---|
| KEYBOARD 1 | CHAR 2 | MOVEMENT | GOBOTTOM |
| KEYDOWN | GODOWN | ||
| KEYUP | GODOWNBIG | ||
| HELP | GOTOP | ||
| GOUP | |||
| GOUPBIG | |||
| POINTER | CLICK | SELECTION | DESELECT |
| DBLCLICK | SELECT | ||
| PDOWN | STATE | FOCUS | |
| PDRAG | VALUE | UNFOCUS | |
| PMOVE | CHANGE | ||
| PUP | |||
| 1 FKEYDOWN and FKEYUP were deleted by version 1.1. The KEYDOWN and... |