drawObjects := OrderedCollection new. "List of all objects"
self processEvents.
Event Handling in Drawing Editor
processEvents
"If right (blue) button pressed, stop the editor. Otherwise, wait for a left (red) button. If it's in an object, drag the object along then redraw all objects. If it's not, draw a new object."
| startLoc target |
[Sensor blueButtonPressed] whileFalse:
[(Sensor redButtonPressed)
ifTrue: [startLoc := Sensor mousePoint. "This gives us the cursor point"