All Manuals > CAPI User Guide > 7 Laying Out CAPI Panes > 7.4 Constraining the size of layouts > 7.4.3 Constraint Formats

NextPrevUpTopContentsIndex

7.4.3.1 Character constraints

In Combining different layouts, you created a window with five panes, by combining row and column layouts. Now consider changing the definition of the editor pane so that it is required to have a minimum size. This would be a sensible change to make, because editor panes need to be large enough to work with comfortably.

(setq editor2 
      (make-instance 'editor-pane
                     :text "An editor pane with minimum size"
                     :visible-min-width '(:character 30)
                     :visible-min-height '(:character 10)))

Now display a window similar to the last example, but with the editor2 editor pane. Note that it is only the decription of the top-level column layout which differs. Before entering the following into the listener, you should close all the windows created in this chapter in order to free up the instances of button1 , button2 and so forth.

(contain (make-instance 'column-layout
                        :description 
                        (list row1 row2 editor2)))

You will not be able to resize the window any smaller than this:

Figure 7.6 The result of resizing the sample layout


CAPI User Guide (Windows version) - 30 Aug 2011

NextPrevUpTopContentsIndex