[Q][3.8gamma-6527][Morphic] How do I set the default size of a SketchMorph?

Scott Wallace scott.wallace at squeakland.org
Mon Dec 13 18:41:03 UTC 2004


Hi, Hannes,

Are you asking how to change the size of the "onion-skin" drawing 
area presented for a new SketchMorph?

If so, look at Preferences class >> defaultPaintingExtent.

Cheers,

  -- Scott

At 12:03 PM +0000 12/13/04, Hannes Hirzel wrote:
>Hi
>
>I would like to change the default bounds for a new SketchMorph.
>
>
>The analysis so far:
>-----------------------
>
>The menu selection
>
>World menu->new morph...->make new drawing
>
>sends the message #newDrawingFromMenu: with the argument #()
>to the World object.
>
>Then a morph is created like this
>
>  PaintInvokingMorph new markAsPartsDonor
>I am looking for the place where the default size of the new 
>SketchMorph is set.
>
>
>I have
>
>Display width
>                                1400
>Display height
>                                1050
>
>and I would like that the default scales the default initial size accordingly.
>#initialize and #defaultBounds play a role, but it is not easy for 
>me to see what is happening.
>
>
>This is for a Christmas present for my niece.
>
>Thank you for the answer in advance
>
>Hannes




More information about the Squeak-dev mailing list