How do you create a simple MVC application window containing a button? I could not find a Window class in Squeak and the View class's information is quite cryptic to the uninitiated.
The simplest one window and one button that I know:
| topView aButton |- MarkGuzdial
topView := StandardSystemView new
label: 'Launch Pad'.
aButton := Button newOff onAction: [Smalltalk beep].
"dummy launching action"
topView addSubView: (PluggableButtonView new
label: 'Beep' asParagraph;
insideColor: Color gray;
model: aButton; borderWidth: 1)
viewport: (0@0 corner: 1@1).
topView controller open.
[...]
topView
addSubView: ((PluggableButtonView on: aButton)
label: 'Beep' asParagraph;
insideColor: Color gray;
borderWidth: 1)
viewport: (0@0 corner: 1@1).
[...]