attachment

Generic Function

Package: common-graphics

Arguments: window

Returns as four multiple values the attachment properties of window. These determine how window's size changes when its parent is resized. The issue is whether the window should scale with its parent or should stay the same size and whether the distance from a side of the child window to the corresponding side of the parent windows should stay constant or should scale with the resizing. The four values are returned by this function (as multiple values) specify the attachment behavior of the left, the top, the right, and the bottom of window, respectively. The possible values for :left-attachment and :right-attachment are:

The keywords :left, :right, or :scale. :left means maintain the same distance from the parent's left side as before the parent was resized -- if the distance was 30 pixels before it is 30 pixels after the parent's resizing. :right means keep the distance to the right side constant. :scale means keep the ratio of the distances from the left and right sides constant -- if the side was half way between before, it is half way between after.

The possible values for the :top-attachment and :bottom-attachment are: The keywords :top, :bottom, or :scale. :top means maintain the same distance from the parent's top as before the parent was resized -- if the distance was 30 pixels before it is 30 pixels after the parent's resizing. :bottom means keep the distance to the bottom constant. :scale means keep the ratio of the distances from the top and bottom sides constant -- if the side was half way between before, it is half way between after.

bottom-attachment, left-attachment, right-attachment, and top-attachment return the individual attachment properties.

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.