Next Previous Up Top Contents Index

7.3 A tour of layouts

7.3.2 Stack layouts

The <stack-layout> class is provided to let you create layout classes in which only one child is visible at a time. They are used to implement tab controls and wizards. In a stack layout, all children are placed on top of one another, with each child aligned at the top left corner by default.

make(<stack-layout>, 
      children: vector(make(<list-box>, label: "List 1"
                            items: #("One", "Two",
                                     "Three", "Four"),
                       make(<list-box>, label: "List 2"
                            items: #("Five", "Six",
                                     "Seven", "Eight"),
                       make(<push-button>, label: "Finish")));


Building Applications Using DUIM - 26 May 1999

Next Previous Up Top Contents Index