MacroPackage: cgToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 9.0
Unrevised from 8.2 to 9.0.
8.2 version

with-events-enabled

Arguments: (window) &body body

If event handling is currently disabled on window, calls enable-events before and after executing the body, passing the enable-p argument to that function as t (enabling events) and then nil (re-disabling events) in order to enable the handling of mouse clicks, keystrokes, and other events sent to the specified window during the execution of the body. This may be useful for enabling events during a portion of a period where they are otherwise disabled by a surrounding call to with-events-disabled.

An unwind-protect is used to ensure that events are re-disabled at the end. Returns whatever values are returned by the body.

If event handling is currently already enabled on window (as it is by default), then the body is simply executed and nothing else is done.


Copyright (c) 1998-2015, Franz Inc. Oakland, CA., USA. All rights reserved.
Documentation for Allegro CL version 9.0. This page was not revised from the 8.2 page.
Created 2012.5.30.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 9.0
Unrevised from 8.2 to 9.0.
8.2 version