690 lines
213 KiB
Plaintext
690 lines
213 KiB
Plaintext
Copyright (c) 1986 Xerox Corporation. All rights reserved.
|
||
|
||
28.6.4 Window Properties Of Attached Windows
|
||
1
|
||
|
||
Windows that are involved in a collection either as a main window or as an attached window have properties stored on them. The only properties that are intended to be set be set by the user are the MINSIZE, MAXSIZE, PASSTOMAINCOMS, and REJECTMAINCOMS window properties. The other properties should be considered read only.
|
||
MINSIZE [Window Property]
|
||
1
|
||
|
||
MAXSIZE [Window Property]
|
||
1
|
||
|
||
Each of these window properties should be a dotted pair (WIDTH . HEIGHT) or a function to apply to the window that returns a dotted pair. The numbers are used when the main window is reshaped. The MINSIZE is used to determine the size of the smallest region acceptable during reshaping. Any amount greater than the collective minimum is spread evenly among the windows until each reaches MAXSIZE. Any excess is given to the main window.
|
||
Note: If you give the main window of an attached window group a MINSIZE or MAXSIZE property, its value is moved to the MAINWINDOWMINSIZE or MAINWINDOWMAXSIZE property, so that the main window can be given a size function that computes the minimum or maximum size of the entire group. Thus, if you want to change the main window's minimum or maximum size after attaching windows to it, you should change the MAINWINDOWMINSIZE or MAINWINDOWMAXSIZE property instead.
|
||
Note: This doesn't address the hard problem of overlapping attached windows side to side, for example if window A was attached as [TOP, LEFT] and B as [TOP, RIGHT]. Currently, the attached window functions do not worry about the overlap.
|
||
The default MAXSIZE is NIL, which will let the region grow indefinitely.
|
||
1
|
||
|
||
MAINWINDOW [Window Property]
|
||
1
|
||
|
||
Pointer from attached windows to the main window of the group. This link is not available if the main window is closed. The function MAINWINDOW (("MAINWINDOW" . Function)) is the preferred way to access this property.
|
||
1
|
||
|
||
ATTACHEDWINDOWS [Window Property]
|
||
1
|
||
|
||
Pointer from a window to its attached windows. The function ATTACHEDWINDOWS (("ATTACHEDWINDOWS" . Function)) is the preferred way to access this property.
|
||
1
|
||
|
||
WHEREATTACHED [Window Property]
|
||
1
|
||
|
||
For attached windows, a dotted pair (EDGE . POSITIONONEDGE) giving the edge and position on the edge that determine how the attached window is placed relative to its main window.
|
||
1
|
||
|
||
The TOTOPFN window property on attached windows and the properties TOTOPFN, DOSHAPEFN, MOVEFN, CLOSEFN, OPENFN, SHRINKFN, EXPANDFN and CALCULATEREGIONFN on main windows contain functions that implement the attached window manipulation facilities. Care should be used in modifying or replacing these properties.
|
||
|