All Manuals > CAPI User Guide > 7 Laying Out CAPI Panes > 7.4 Constraining the size of layouts > 7.4.4 Changing the constraints

NextPrevUpTopContentsIndex

7.4.4.1 Initial constraints

You can use the initarg :initial-constraints to specify constraints that apply during creation of the element's interface, but not after the interface is displayed.

For example, this creates a window that starts at least 600 pixels high, but can be made shorter by the user, because that initial constraint is transient. However, the permanent constraints on the heights of the two output panes remain in effect:

(contain
 (make-instance 'column-layout 
                :description 
                (list (make-instance 'output-pane 
                                     :visible-min-height 100
                                     :background :red)
                      (make-instance 'output-pane
                                     :visible-min-height 200
                                     :background :blue))
                :initial-constraints '(:visible-min-height 600)))

CAPI User Guide (Macintosh version) - 30 Aug 2011

NextPrevUpTopContentsIndex