Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
grirgz committed Nov 17, 2012
1 parent 6ab0c4b commit e871ff2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions crap35.sc
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,12 @@
(
var stack;
w = Window();
~layout = VLayoutView.new(w, Rect(0,0,200,200));
~but = Button(~layout).states_([["One"],["Two"],["Three"]]).action_({ |b| stack.index = b.value });
stack = StackLayout.new(~layout,
TextView().string_("This is a chunk of text..."),
TextView().string_("...and this is another..."),
TextView().string_("...and another.")
);
w.front;
)

0 comments on commit e871ff2

Please sign in to comment.