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
-- View this message in context: http://forum.world.st/Is-there-a-tandard-way-to-attach-context-menus-tp10845... Sent from the Squeak - Beginners mailing list archive at Nabble.com.