move-window-into-parent

Function

Package: common-graphics

Arguments: window &key (overlap-x (width window)) (overlap-y (height window))

If window is not entirely contained within the scrollable extent of its parent, moves the window as far as necessary so that it is. This function is used by forms to prevent losing a component by accidentally dragging it completely off of the form.

overlap-x is the amount in pixels by which the window must horizontally overlap the visible interior its parent. The default is the width of the window, to make the entire window visible within its parent if possible. A smaller positive value would make the window partly visible (so that it can be spotted by the user) without showing more of the window than necessary if it might otherwise obscure other important content in the parent.

Similarly, overlap-y is the amount in pixels by which the window must vertically overlap the visible interior its parent. The default is the height of the window, to make the entire window visible within its parent if possible.

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.