<div dir="ltr"><div dir="ltr"><div>Hi everyone,</div><div><br></div><div>I noticed that defining >>menu on a TextAttribute is currently not working, because the TextEditor tries to call >>openAt: on the MenuMorph returned by >>menu. I suppose >>openAt: is an old method that no longer exists?</div><div>I updated the code to use the 
>>popUpEvent:in:method instead. I have attached a sample text attribute that shows the menu behaviour. Open it by doit'ing "MyTextAttribute example". If you yellow click on "HERE" in the opened textbox, the menu will appear.</div><div>I was not 100% sure what to set as the invoking view – "self model", "self morph" or "self morph editView". Let me know what you think about my choice of "self morph editView".<br></div><div><br></div><div>Best,</div><div>Christian<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Do., 1. Aug. 2019 um 18:58 Uhr schrieb <<a href="mailto:commits@source.squeak.org">commits@source.squeak.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">A new version of Morphic was added to project The Inbox:<br>
<a href="http://source.squeak.org/inbox/Morphic-cmfcmf.1496.mcz" rel="noreferrer" target="_blank">http://source.squeak.org/inbox/Morphic-cmfcmf.1496.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: Morphic-cmfcmf.1496<br>
Author: cmfcmf<br>
Time: 1 August 2019, 6:57:12.047202 pm<br>
UUID: 34f7313a-f70a-3542-bd4d-9657b63cd95e<br>
Ancestors: Morphic-mt.1495<br>
<br>
Use MenuMorph>>popUpEvent:in: instead of not existing MenuMorph>>openAt: when yellow button clicking on a TextAttribute with >>menu defined.<br>
<br>
=============== Diff against Morphic-mt.1495 ===============<br>
<br>
Item was changed:<br>
  ----- Method: TextEditor>>yellowButtonDown: (in category 'events') -----<br>
  yellowButtonDown: event<br>
        "Process a yellow button event. Answer true if the event was handled, false otherwise."<br>
        (paragraph attributesAt: event cursorPoint) do:[:attr|<br>
                attr menu ifNotNil:[<br>
+                       attr menu<br>
+                               setInvokingView: self morph editView;<br>
+                               popUpEvent: event in: self morph world.<br>
-                       attr menu openAt: event cursorPoint.<br>
                        ^true]].<br>
        ^false!<br>
<br>
<br>
</blockquote></div></div>