[Q] Testing SelectionMorph
Mike Roberts
mike at mjr104.co.uk
Wed Aug 13 12:50:25 UTC 2003
Hi,
is it possible in a workspace to create a selection morph, select some morphs and interact with it. I wanted to do this to post a test for the bug I have just posted. I didn't get very far, sorry. What is the way to generate a test for this?
| selection star |
star _ StarMorph new.
star extent:100 at 100.
star position: 100 at 100.
star openInWorld.
selection _ SelectionMorph new.
"select the morph here. hmm?"
selection setSelectedItems:(OrderedCollection new add:star).
"hit the halo. needs an event. hmm?"
"out of my depth"
selection addOrRemoveItems: hmm
selection inspect
Cheers
Mike
More information about the Squeak-dev
mailing list
|