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)))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 using(contain switching-panes)
switchable-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