TheWorldMenu
Last updated at 2:23 pm UTC on 16 January 2006
An instance of the class TheWorldMenu is shown as a World menu when the user clicks the Red button on the desktop. (Actually the desktop is the World, an instance of PasteUpMorph).
The following code snippet leads you to a point of departure for reading the code for TheWorldMenu.
(TheWorldMenu new
world: World
project: Project current
hand: World currentHand)
buildWorldMenu openInWorld.
The message #openInWorld is sent here to the instance of the class TheWorldMenu just for demonstration purposes. The menu shows up in the upper left corner.
Look at PasteUpMorph>>buildWorldMenu: to see how the menu is used in context.
The method #buildWorldMenu of the class Dynamic open menu is the entry point worth exploring.
A part of the world menu is now dynamic. Your own application can register for an entry in the world menu (see Dynamic open menu for details)
Collaboration diagram for 3.8g made with the BabySRE tool (Trygve Reenskaug)

Hannes Hirzel, update 27-Dec-2004