nc-event

Generic Function

Package: common-graphics

Arguments: stream event-number button-state data frame-section

Starting in version 5.0, events are handle somewhat differently than in 3.0.2. Instead of specializing nc-event, you should specialize the new generic function named after the message, such as nc-right-mouse-down and nc-mouse-moved. These were only constants in 3.0.2 (corresponding to the message argument to nc-event) but they are now constants and generic-functions. Nc-event is still called, as in 3.0.2, but it simply dispatches to the appropriate new function. All these functions take the same arguments event except the event-number argument. Argument list change: nc-event used to have six arguments. It now accepts only four. The time (sixth) argument is no longer passed because it was a performance drain and rarely if ever used. If you need the time, use the function GetMessageTime.

See About events in the IDE in cgide.htm.

Common Graphics and IDE documentation is described in About Common Graphics and IDE documentation in cgide.htm.

The documentation is described in introduction.htm and the index is in index.htm.

Copyright (c) 1998-2000, Franz Inc. Berkeley, CA., USA. All rights reserved.

Created 2000.10.5.