Generic 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

## default-height

Arguments: window-or-configuration

Returns the height to be used for a newly created window if an explicit height was not specified in the call to make-window. This function is called automatically by the system and should not be called by applications, but an application may supply default-height methods to specify the default sizes for its window subclasses.

default-height is called after the Lisp object for the window has been created but before the actual window has been created by the operating system. It returns an integer denoting the height to use for the new window.

The default version of these methods (for simple-streams) work as follows. The height is determined by:

1. If a method is supplied for the class of the window argument, and that method returns an integer (rather than `nil`), that value is used for the height. Otherwise:
2. If the value of `(default-height (configuration *system*))` is true, use that value for the height. (It is `nil` initially though.)
3. If `(default-height (configuration *system*))` is `nil`, multiply the height of the screen, `(height (screen *system*))`, by `(default-height-factor (configuration *system*))` and use the result as the height.

default-height methods may be added for window subclasses of an application in lieu of passing the equivalent initargs for each window instance.

You can pass the :exterior-top-left argument to make-window in order to specify a particular position for the top-left corner of a window without overriding these default size methods. The top-left position will otherwise default to being offset somewhat from the position at which the previous window was created.

default-height is a property of the `configuration` class. See also default-width and default-top-left.

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