<div dir="ltr">Hi.<br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 22, 2017 at 10:52 AM, Tim Cuthbertson <span dir="ltr"><<a href="mailto:ratcheer@gmail.com" target="_blank">ratcheer@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div>Please allow me to simplify my question. I need a basic answer.<br><br></div>One of the articles on Morphic says you can create composite morphs either programatically, using addMorph, or using drag and drop from the Objects menu of the morphic World. I have done the latter, because it is easier to design my layout that way. Once that has been done, how do I address the submorph from a browser? If I inspect my button submorph, for example, all it will tell me about it is "a ScriptableButton<Button>(<wbr>1364754)". I have no idea how to access that object in order to do anything with it. This is the crux of my questions.<br><br></div>Thank you<br><br></div>Tim Cuthbertson<br></div><div class="gmail_extra"><br></div></blockquote><div>Hi, having been through this recently myself, let me share what I do.</div><div><br></div><div>First, expore the new morph, and name the morph, such as:</div><div>   self name: 'NameString'</div><div>Then, when you need to find the morph later use #externalName, roughly like what Jecel suggests:</div><div> </div><div><span style="font-size:12.8px">| stopButton |</span><br style="font-size:12.8px"><span style="font-size:12.8px">stopButton := nil.</span><br style="font-size:12.8px"><span style="font-size:12.8px">self allMorphsDo: [ :m | (m externalName = 'NameString') ifTrue: [</span><br style="font-size:12.8px"><span style="font-size:12.8px">                               stopButton := m ] ].</span><br style="font-size:12.8px"><span style="font-size:12.8px">stopButton ifNotNilDo: [ :b | b ... ].</span><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">In my code, I store all of the submorphs I want in local variables for later use.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">(note that I use #allMorphsDo: - this check morphs embedded in other morphs in your main morph, which I did a lot of!).</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">-cbc</span></div></div></div></div>