2010/2/4 GARY CHAMBERS <gazzaguru2@btinternet.com>
There is a new version of Polymorph on SqueakSource (Polymorph-Widgets-gvc.103) that supports a background morph for the world that resizes with the main window.
I guess the backgroundSketch/Form stuff can be removed (I reused the backgroundMorph inst var - no direct way of setting did remain, accessors now).
This can be used for background images (as requested):
E.g.
World backgroundMorph: ((UITheme builder newAlphaImage: (ImageReadWriter formFromFileNamed: 'Watery 2.jpg') help: nil) autoSize: false; layout: #scaled; lock)
(AlphaImageMorph supports a few layout positions/tiling/scaling, more could be added like aspect-maintaining scaling etc.)
Gary: let me say it: you are my hero!!!! hahahaha Please please please can someone with a notebook and a good screen test this with the Pharo picture I used in the RC2? I attach here the picrture. Please tell me if it works so that to know if I continue including it or not.
Or could be helpful for deployed applications... set the background morph to your main UI morph, for instance.
Thanks cool. There is just someone in another thread that is asking for something similar to this :)
Regards, Gary
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project