The teachpack arrow-gui.ss implements three functions:
Example:
> (define (make-model dir)
(lambda (b e)
(printf (format "~a" (control)))
(view dir)))
> (connect
(make-model "west")
(make-model "east")
(make-model "north")
(make-model "south"))
Now click on the four arrows. The message field will contain the current
direction, the print-out the prior contents of the message field.