| Allegro CL version 8.2 Unrevised from 8.1 to 8.2. 8.1 version |
Arguments: standard-object
Returns the parent of the argument. See also owner. And see About child, parent, and owner windows in cgide.htm.
For windows, (setf parent) may be called to change the parent
of an existing window to another window or the screen (to change to
the screen, setf the value to (screen *system*)
--
see screen and
*system*
). The new parent will also
be the owner of the window, even when the new parent is the
screen. (Currently there is no way to change the owner of an owned
top-level window.)
In releases prior to 6.0, this function returned the owner when the window was a pop-up window (see pop-up. The real parent of a pop-up window is always the screen regardless of what :parent initarg is passed to make-window. It may still have an owner window, however, which is the window with which the window shrinks and closes. If your code calls parent to return the owner of a pop-up window, then you will need to change it to call owner instead.
You cannot change the parent of a window from a window to the screen
or vice versa. Attempting to do so will simply invoke the *gtk-compatibility-warning-action*
. You may
only change the parent from one window to another window.
Copyright (c) 1998-2016, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.1 page.
Created 2010.1.21.
| Allegro CL version 8.2 Unrevised from 8.1 to 8.2. 8.1 version |