restart: with(Maplets): with(Maplets[Elements]): B:=Button("Button",Evaluate()): L:=Button("Execute Example",Evaluate()): S:=Button("OK",Shutdown()): MBox:=Maplet( Window( title="BoxLayout", layout=BoxLayout(inset=0, BoxLayout(inset=0,border=true, BoxColumn(inset=0,spacing=0,border=true, BoxRow(inset=0,spacing=0,border=true, BoxCell(B), BoxCell(B) ), BoxRow(inset=0,spacing=0,border=true, BoxLayout(inset=0,border=true,BoxCell(L)), BoxLayout(inset=0,border=true,BoxCell(S)) ) ) ) ) ) ): Display(MBox); MGrid:=Maplet( Window( title="GridLayout", layout=GridLayout(inset=5, GridRow( GridCell(B), GridCell(B) ), GridRow( GridCell(BoxLayout(inset=0,border=true,L)), GridCell(BoxLayout(inset=0,border=true,S)) ) ) ) ): Display(MGrid);