Login  Register

Re: Multiple Worlds for Pharo *stable*

Posted by tfleig on Jan 25, 2011; 2:56am
URL: https://forum.world.st/Multiple-Worlds-for-Pharo-stable-tp3233552p3235345.html

I set up different backgrounds in my different worlds so I could tell which one I was in.  ;)

TF

On Mon, Jan 24, 2011 at 6:53 PM, Aidan Gauland <[hidden email]> wrote:
On Mon, Jan 24, 2011 at 08:51:55AM -0800, Tony Fleig wrote:
> I noticed the taskbar was missing in the new worlds, so I evaluate the
> following when I create a new world:
>
>     World taskbars ifEmpty: [
>         TaskbarMorph new openInWorld: World.
>         (World systemWindows select: [ :each |
>      each isCollapsed]) do: [ :wnd | wnd restore; minimize ]]]

Thanks!  That worked perfectly for me.

If anyone wants to have the same background in their other worlds as
the first one, this should do it...

wm := WorldManager instance.
bgm := (wm worldNamed: 'Pharo') backgroundMorph.
(wm worldNamed: 'AnotherWorld') backgroundMorph: bgm.

Regards,
Aidan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk0+Oy8ACgkQjyzTRvYJmaWbnACfWD9WKfQ/7nm2aJAVDYbX/LXl
mkEAnjsDv0S+0upvBpXkeFaBZs9l3Dve
=GgPD
-----END PGP SIGNATURE-----