[Newbies] Re: Is there a tandard way to attach context menus

Sean P. DeNigris sean at clipperadams.com
Fri Nov 4 17:47:34 UTC 2011

To add a context menu to a morph class:
1. Enable mouse handling:
  #handlesMouseDown: anEvent
    ^ true.
2. Decide if you want to start with the standard menu, or go totally custom
  a. If you want to include the standard options:
    1. defaultYellowButtonMenuEnabled
        ^ true.
    2. #addCustomMenuItems:hand: with your morph-specific items
  b. To take full control and start from scratch, specify menu items in

Probably too late to help the OP ;-) But I wanted to document this,
especially for myself when I forget in two weeks!


View this message in context: http://forum.world.st/Is-there-a-tandard-way-to-attach-context-menus-tp108458p3991035.html
Sent from the Squeak - Beginners mailing list archive at Nabble.com.

More information about the Beginners mailing list