Changing an event to a subclass

An event is an instance of a particular event-class. Events can be subclassed to add attributes (event parameters). The base class for all events is OMEvent.

About this task

For example, windowing systems define several event classes: MouseEvent is a subclass of InputEvent, and MouseClickEvent and MouseMotionEvent are subclasses of MouseEvent.

Procedure

  1. Open the Features window for the event.
  2. From the Inherits: list, select the event that is to serve as the base class.
  3. Click Apply or OK.

Feedback