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 #addYellowButtonMenuItemsTo:event:
Probably too late to help the OP ;-) But I wanted to document this, especially for myself when I forget in two weeks!
Sean
Cheers,
Sean