Squeak Class Documentation category index | class index  
 
MVCMenuMorph
  category: Morphic-Menus
  superclass: MenuMorph
  subclasses:

I simulate the MVC menu classes PopUpMenu, SelectionMenu, and CustomMenu when running in a Morphic world. I am also used to implement Utilities>informUser:during:.

instance methods
  invoking
  displayAt:during:
informUserAt:during:
invokeAt:in:

  private
  cancelValue:
selectMVCItem:

class methods
  instance creation
  from:title:

instance methods
  invoking top  
 

displayAt:during:

Add this menu to the Morphic world during the execution of the given block.


 

informUserAt:during:

Add this menu to the Morphic world during the execution of the given block.


 

invokeAt:in:

Add this menu to the given world centered at the given point. Wait for the user to make a selection and answer it. The selection value returned is an integer in keeping with PopUpMenu, if the menu is converted from an MVC-style menu.


  private top  
 

cancelValue:

Set the value to be returned if the user cancels without making a selection.


 

selectMVCItem:

Called by the MenuItemMorph that the user selects.
Record the selection and set the done flag to end this interaction.


class methods
  instance creation top  
 

from:title:

Answer a MenuMorph constructed from the given PopUpMenu. Used to simulate MVC-style menus in a Morphic-only world.