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 6.6 The result of resizing the sample layout