<body><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000">
                                        Hi Stephen.<div><br></div><div>Sub-menus will behave as expected. :-) To create something like what Tim showed, you can use this interface:</div><div><br></div><div>MenuMorph >> #add:subMenu:</div><div><br></div><div>If you want to write menu-construction code that should (eventually) work in Squeak's Morphic and MVC, you should use this interface:</div><div><br></div><div>MenuMorph >> #add:subMenu:target:selector:argumentList:</div><div>CustomMenu >> #add<span style="font-size: 13.3333px">:subMenu:target:selector:argumentList:</span></div><div><span style="font-size: 13.3333px"><br></span></div><div><span style="font-size: 13.3333px">If you are using ToolBuilder directly to construct menus (i.e. PluggableMenuSpec), there is -- unfortunately -- no way to add sub-menus. However, almost all tools that go through ToolBuilder construct their menus via a callback from the actual widgets (e.g., PluggableListMorph in Morphic, PluggableListView in MVC), which then arrives as "someMenu" in your model's menu-construction method. That "someMenu" will then be a MenuMorph (in Morphic) or CustomMenu (in MVC). See above for that case. :-)</span></div><div><span style="font-size: 13.3333px"><br></span></div><div><span style="font-size: 13.3333px">That latter, most frequent way, to construct menus does not add sub-menus but this .... very special ;-) ... "more..." menu item at the end of the list.</span></div><div><span style="font-size: 13.3333px"><br></span></div><div><span style="font-size: 13.3333px">Best,</span></div><div><span style="font-size: 13.3333px">Marcel</span></div><div class="mb_sig"></div><blockquote class="history_container" type="cite" style="border-left-style:solid;border-width:1px; margin-top:20px; margin-left:0px;padding-left:10px;">
                        <p style="color: #AAAAAA; margin-top: 10px;">Am 01.06.2020 00:25:54 schrieb tim Rowledge <tim@rowledge.org>:</p><div style="font-family:Arial,Helvetica,sans-serif"><br class=""><br class=""><blockquote type="cite" class="">On 2020-05-31, at 2:49 PM, Stephen Pope <<a href="mailto:stephen@heaveneverywhere.com" class="">stephen@heaveneverywhere.com</a>> wrote:<br class=""><br class="">Hi all,<br class=""><br class="">The title says it all; my app (Siren) uses hierarchical menus extensively<br class="">(see the attached screen shot for an example), and I'd rather not have them<br class="">be many-click menus as in Squeak.<br class=""><br class="">Is there an implementation of true hierarchical/pull-right menus in Squeak<br class="">or any of its descendants (I'm using Cuis).</blockquote><div class=""><br class=""></div>You mean like this - <div class=""><img apple-inline="yes" id="461EBD7D-78EC-4BDC-80E3-33844D6A1697" src="cid:4BDEE9B6-AD44-4D68-A089-8AFA1EC915C4@(null)" class=""></img></div><div class=""><br class=""></div><div class="">That's a DockingBarMenuMorph but it's just a child of MenuMorph. I think one simply uses #add:subMenu:</div><div class=""><br class=""></div><div class="">Oddly enough I was talking to some other folk about Siren just last week...<br class=""><br class=""><div class=""><br class="">tim<br class="">--<br class="">tim Rowledge; <a href="mailto:tim@rowledge.org" class="">tim@rowledge.org</a>; <a href="http://www.rowledge.org/tim" class="">http://www.rowledge.org/tim</a><br class="">Useful random insult:- Kept an open mind -- and his brains fell out.<br class=""><br class=""></div><br class=""></div></div></blockquote>
                                        </div></body>