Reference MWAPI

Event Types

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.

Table 5.9: MWAPI-Defined Event Types

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...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Computer Mice and Pointing Devices
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.