[Pharo-project] Question regarding: #addYellowButtonMenuItemsTo:event:
Hello all I am trying to build a nested menu and #addYellowButtonMenuItemsTo:event: seemed to be just the thing I need. But it gives me troubles: It builds the menu starting with the outermost morph an then adds submenus for the submorphs under the mouse. If I understand this correctly, then the menu- construction comes to halt when there is a submorph, which does not want to contribute to the menu, even when a sub-submorph wants to contribute something. I have this situation and the submorph in question is a plain Morph and I hesitate to create an extra class for it. Wouldn't it be better to let #addYellowButtonMenuItemsTo:event: find ALL Morphs which might want to contribute to the menu? Is there a better way of constructing menus with several contributors, or should I roll my own? -- Martin
See if http://forum.world.st/Adding-a-context-menu-to-a-Morph-td3991117.html sheds any light... Sean -- View this message in context: http://forum.world.st/Question-regarding-addYellowButtonMenuItemsTo-event-tp... Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
participants (2)
-
Martin Drautzburg -
Sean P. DeNigris