Macro | Package: cg | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version

## with-events-disabled

Arguments: (window) &body body

If event handling is currently enabled on window, calls enable-events before and after executing the body, passing the enable-p argument to that function as `nil` (disabling events) and then `t` (re-enabling events) in order to suppress the handling of mouse clicks, keystrokes, and other events sent to the specified window during the execution of the body.

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

If event handling is currently already disabled on window, then the body is simply executed and nothing else is done.

You can use with-events-enabled within body to temporarily re-enable events during the execution of body.

Copyright (c) 1998-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version