logo       

Re: Disable Morph-drag in a PasteUpMorph: msg#00210

lang.smalltalk.squeak.beginners

Subject: Re: Disable Morph-drag in a PasteUpMorph

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@xxxxxxxxxxxxxxxxxxxxxxxxxx
http://lists.squeakfoundation.org/mailman/listinfo/beginners




--
Jeffrey Straszheim
http://straszheim.50megs.com


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise