Function | Package: cg | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version

## get-position

Arguments: window-or-screen &optional scroll-p cursor

Waits until the user presses a mouse button down, and then returns the current position of the mouse cursor in the stream coordinates of window-or-screen. The screen is the value returned by `(screen *system*)`. See screen and `*system*`.

If scroll-p is true, the window (identified by window-or-screen) will be scrolled if the cursor moves outside it. Sets the stream cursor to cursor while running. If the cursor argument is t, a default is used (typically the cross-hair cursor).

You may wish to call wait-for-mouse-buttons-up prior to calling get-position to ensure that mouse button releases associated with other actions do not interfere with getting the desired position.

Copyright (c) 1998-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.2 page.
Created 2012.5.30.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version