Hi guys,
again, I have to ask a rather interesting question. Say, you have a PasteUpMorph, inside which you have put other elements, maybe other morphs, or images, or something like this. I would like the contents inside to be fixed, meaning that you should not be able to pick up a morph inside the PasteUpMorph and move it around.
Can you guys let me know if this is possible?
Cheers, Marcus
Howdy,
Look at PasteUpMorph>>mouseDown.
It appears that if you set the "sticky" property on the submorphs you're interested they can't be picked up.
Otherwise, you could subclass PasteUpMorph and implement mouseDown you're own way.
(I haven't tried this, only looked briefly at the code.)
Good luck.
Marcus Strehlow wrote:
Hi guys,
again, I have to ask a rather interesting question. Say, you have a PasteUpMorph, inside which you have put other elements, maybe other morphs, or images, or something like this. I would like the contents inside to be fixed, meaning that you should not be able to pick up a morph inside the PasteUpMorph and move it around.
Can you guys let me know if this is possible?
Cheers, Marcus
Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
Hi,
you can do this by selecting "Resist being picked up" in the morph's menu.
Cheers
Matthias
On Thu, Feb 28, 2008 at 12:39 AM, Marcus Strehlow marcus.strehlow@gmail.com wrote:
Hi guys,
again, I have to ask a rather interesting question. Say, you have a PasteUpMorph, inside which you have put other elements, maybe other morphs, or images, or something like this. I would like the contents inside to be fixed, meaning that you should not be able to pick up a morph inside the PasteUpMorph and move it around.
Can you guys let me know if this is possible?
Cheers, Marcus
Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
On Thu, Feb 28, 2008 at 12:39 AM, Marcus Strehlow marcus.strehlow@gmail.com wrote:
Hi guys,
again, I have to ask a rather interesting question. Say, you have a PasteUpMorph, inside which you have put other elements, maybe other morphs, or images, or something like this. I would like the contents inside to be fixed, meaning that you should not be able to pick up a morph inside the PasteUpMorph and move it around.
Can you guys let me know if this is possible?
Why do you use a PasteUpMorph then? Simply embed your morphs in a regular morph instead.
- Bert -
beginners@lists.squeakfoundation.org