Drag and Drop (PBE)
Last updated at 6:15 pm UTC on 22 February 2017
https://ci.inria.fr/pharo-contribution/job/UpdatedPharoByExample/lastSuccessfulBuild/artifact/book-result/Morphic/Morphic.html
Section 107
Let's first define the receiver morph:
Morph subclass: #ReceiverMorph
instanceVariableNames: ''
classVariableNames: ''
package: 'PBE-Morphic'
With a usual initialization method:
ReceiverMorph >> initialize
super initialize.
color := Color red.
bounds := 0 @ 0 extent: 200 @ 200
0.94
Drag and Drop: receiver morph needs to implement 'wantsDroppedMorph:anEvent'
What happens to a dropped morph if the receiving morph doesn't want it?
.....
continues here
https://ci.inria.fr/pharo-contribution/job/UpdatedPharoByExample/lastSuccessfulBuild/artifact/book-result/Morphic/Morphic.html