I have the following structure:
PasteUpMorph | +---------- RectangleMorph (with a TableLayout) | | | +--- object1 | | | +--- object2 | | | ... | +---------- arrow1 | +---------- arrow2 | ...
The PasteUpMorph has the exact size of the RectangleMorph.
I want to be able to click on "object1", "object2", ... so I've added a
object1 on: #mouseDown send: #expand to: object1
where #expand opens a new morph in the hand.
However, I want to make sure that when the RectangleMorph gets moved, the PasteUpMorph gets moved as well, to have the arrows follow. If I use
myRectangleMorph extension locked: true
it doesn't (expectingly) answer to mouse down events anymore.
How can I do to have the PasteUpMorph moved instead of the RectangleMorph when I drag it?
Sam
"Sam" == Samuel Tardieu sam@rfc1149.net writes:
Sam> However, I want to make sure that when the RectangleMorph gets Sam> moved, the PasteUpMorph gets moved as well, to have the arrows Sam> follow.
Found. I now use another RectangleMorph instead of a PasteUpMorph and #sticky: instead of #locked: on the extension, and everything is fine.
Sam
squeak-dev@lists.squeakfoundation.org