// title: growing layout // author: julian.rohrhuber // description: // Just an illustration of how layouts behave dynamically. // code: ( a = Window(); a.layout = v = VLayout(); a.front; fork({ 10.do { v.add(h = HLayout()); 20.rand.do { h.add(Slider()); 0.1.wait; }; 1.wait; }; }, AppClock) ) ( a = Window(); a.layout = v = VLayout(); a.front; fork({ var or; 10.do { or = [\horizontal, \vertical].choose; v.add(h = HLayout()); 10.rand.do { h.add(Slider().orientation_(or).value_(1.0.rand)); 0.1.wait; }; 1.wait; }; }, AppClock) )