A SketchMorph lets you set the extent directly<div><br></div><div>Karl<br><br><div class="gmail_quote">On Wed, Jan 4, 2012 at 4:44 PM, Jan Teske <span dir="ltr">&lt;<a href="mailto:jan.teske@student.hpi.uni-potsdam.de">jan.teske@student.hpi.uni-potsdam.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey,<br>
<br>
I&#39;m currently developing a small game with Squeak. Part of it is a bunch of menus which should have background images. Therefore I have realized them as ImageMorphs with the respective images.<br>
Now, there are menus which sizes are determined dynamically during the runtime of the game. That means I have to change the size of the menus. Since I cannot do this by manipulating &#39;menu extent: ...&#39; directly, the only way I found until now is to manipulate the image form &#39;menu image: menu image scaledToSize: ...&#39;. That works pretty well except for one thing: I cannot change the aspect ration of the original image with scaledToSize:. Since I do not know the extends of my menus before the game starts, I cannot say anything about the needed image ratio. Since my menus should be as applicable as possible I need to be able to resize also in a way which destroys the original scales.<br>

<br>
Is there any easy workaround for my problem or a recommended way for creating resizable Morphs with background images?<br>
<br>
Thanks in advance!<br>
______________________________<u></u>_________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@lists.squeakfoundation.org" target="_blank">Beginners@lists.<u></u>squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.<u></u>org/mailman/listinfo/beginners</a><br>
</blockquote></div><br></div>