Re: Multiple Worlds for Pharo *stable*
Posted by
Aidan Gauland-2 on
Jan 25, 2011; 2:53am
URL: https://forum.world.st/Multiple-Worlds-for-Pharo-stable-tp3233552p3235344.html
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