
5.5 Advanced Pane Layouts
switchable-layout element in amake-instance. As with the other layouts, such ascolumn-layout androw-layout, the elements to be organized are given as a list to the:description keyword. Here is an example:
(setq switching-panes (make-instance
'switchable-layout
:description (list red-pane green-pane)))
(contain switching-panes)
Note that the default pane to be displayed is the red pane, which was the first pane in the description list. The two panes can now be switched between usingswitchable-layout-visible-child:
(setf (switchable-layout-visible-child switching-panes)
green-pane)
(setf (switchable-layout-visible-child switching-panes)
red-pane)

Generated with Harlequin WebMaker