I want to create a container -- a panel -- that will contain other Morphs, but within which I can drag the morphs around. If the more were dragged out from the container it should be deleted.
What is the most straightforward way to do this? Drag and drop?
Jeffrey Straszheim wrote:
I want to create a container -- a panel -- that will contain other Morphs, but within which I can drag the morphs around. If the more were dragged out from the container it should be deleted.
What is the most straightforward way to do this? Drag and drop?
Use a PasteUpMorph which is the one used as the desktop. Use mouseLeave to do the delete.
Karl
El 2/19/08 11:22 PM, "Jeffrey Straszheim" jstraszheim@comcast.net escribió:
I want to create a container -- a panel -- that will contain other Morphs, but within which I can drag the morphs around. If the more were dragged out from the container it should be deleted.
What is the most straightforward way to do this? Drag and drop?
-- Jeffrey Straszheim http://straszheim.50megs.com
If you mean an box A inside a larger box B , yes and then play with position of B. If you mean several boxes droped and new boxes deleting old boxes , no. you need some code.
Or I miss some here.
Cheers.
Edgar
beginners@lists.squeakfoundation.org