seandenigris / Living-Code

How do we make the IDE more like real life - live, direct, and fun!
MIT License
8 stars 0 forks source link

Collection Morphs #18

Open seandenigris opened 10 years ago

seandenigris commented 10 years ago

To start, this snippet will open a window with each of the elements stacked vertically, kind of like a super inspector

| c s |
c := Morph new.
c
    changeTableLayout;
    hResizing: #shrinkWrap;
    vResizing: #shrinkWrap.
self do: [ :e | c addMorph: (SimpleObjectMorph on: e ) ].
"s := ScrollPane new.
s scroller addMorph: c."
s := GeneralScrollPane new
        scrollTarget: c;
        yourself.
s openInWindow.