Disable Morph-drag in a PasteUpMorph

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Disable Morph-drag in a PasteUpMorph

Marcus Strehlow
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
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Disable Morph-drag in a PasteUpMorph

JeffreyStraszheim
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
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
>


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

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Disable Morph-drag in a PasteUpMorph

Matthias Berth-2
In reply to this post by Marcus Strehlow
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
<[hidden email]> 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
>  [hidden email]
>  http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Disable Morph-drag in a PasteUpMorph

Bert Freudenberg
On Thu, Feb 28, 2008 at 12:39 AM, Marcus Strehlow
<[hidden email]> 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 mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners