[squeak-dev] Morphic

Ricardo Moran richi.moran at gmail.com
Sat Oct 9 18:31:41 UTC 2010


Hi,

I think you can do it by adding a flex shell to your morph and then changing
the extent of the shell. Something like this:

t := morph addFlexShell.
t extent: 100 at 100.

Cheers
Richo

On Sat, Oct 9, 2010 at 3:13 PM, d3orn <dominique.rahm at gmx.ch> wrote:

>
> Hey there,
> I'm currently working on a Morph holding different submorphs and now I
> would
> like to create something like a minimap of this supermorph holding a
> representation of the submorphs.
> Therefore I created a x: 200 and y: displaywidth morph
> now I would like to copy the supermorph and scaling down his width to 200
> and then center it inside the minimapMorph..
> This is very the problems starts^^
> I therefore create a new Morph and adding all the submorphs to this, then I
> calculate the factor (supermorph width / 200)
> now I would like to scale the supermorph copy and all it's submorphs but I
> don't know exactly how I could do this...
> Any help would be very nice
> thx
> --
> View this message in context:
> http://forum.world.st/Morphic-tp2969771p2969771.html
> Sent from the Squeak - Dev mailing list archive at Nabble.com.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20101009/024b8f40/attachment.htm


More information about the Squeak-dev mailing list