[Newbies] Drag and dropped jpg (playing cards) - how to put in the "new morph" menu and create a PlayingCard class?

John McKeon p3anoman at gmail.com
Mon Oct 26 01:33:57 UTC 2009


Hi Mike,
Why not use code to bring in the images. SketchMorph fromFile: aFilename
could be useful in a Workspace.

HTH
John


On Sun, Oct 25, 2009 at 2:29 AM, Mike Stramba <mikestramba at gmail.com> wrote:

> I'm runninng squeak 3.10.2 on windows XP.
>
> If I drag and drop a jpg onto Squeak, it creates a SketchMorph.
>
> Specficially, I'm adding a playing card image, well 52 of them, and
> I'd like to be able to add a card from the world menu / new morph
> menu.
>
> I'd also like to create a PlayingCard class, that uses the dropped jpg.
>
> At the moment I'm doing it the "hard way", after dropping the jpg, I'm
> digging through system dictionary, digging out the world objects, and
> "drilling down" to the dropped object.
>
> Any tips, info appreciated.
>
> Mike
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>



-- 
http://jmck.seasidehosting.st
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20091025/782f1b7a/attachment.htm


More information about the Beginners mailing list