<div dir="ltr"><div><div><div><div><div>Date: Tue, 21 Feb 2017 22:41:36 +0100<br>
From: "H. Hirzel" <<a href="mailto:hannes.hirzel@gmail.com">hannes.hirzel@gmail.com</a>><br>
To: "A friendly place to get answers to even the most basic questions<br>
        about Squeak." <<a href="mailto:beginners@lists.squeakfoundation.org">beginners@lists.<wbr>squeakfoundation.org</a>><br>
Subject: Re: [Newbies] Beginner Morphic Question<br>
Message-ID:<br>
        <<a href="mailto:CAGQxfVjPLxhKo09-c9r-1XyUMT1qjCHXF4AWRFDuvkaaUsQHaw@mail.gmail.com">CAGQxfVjPLxhKo09-c9r-<wbr>1XyUMT1qjCHXF4AWRFDuvkaaUsQHaw<wbr>@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
Have you seen this example<br>
<br>
<a href="http://wiki.squeak.org/squeak/526" rel="noreferrer" target="_blank">http://wiki.squeak.org/squeak/<wbr>526</a><br>
<br>
?<br>
<br>
Code<br>
<br>
<a href="http://wiki.squeak.org/squeak/uploads/MorphicGUIDemo.2.cs.gz" rel="noreferrer" target="_blank">http://wiki.squeak.org/squeak/<wbr>uploads/MorphicGUIDemo.2.cs.gz</a><br>
<br>
Could you please explain in more details what you would like to build?<br>
<br>
--Hannes<br>
<br>
On 2/21/17, Tim Cuthbertson <<a href="mailto:ratcheer@gmail.com">ratcheer@gmail.com</a>> wrote:<br>
> I am trying to start a Morphic application. I have read a lot of tutorials,<br>
> but I can't figure out how to program my submorphs.<br>
><br>
> I have created my top level as a subclass of PasteUpMorph, opened it, and<br>
> embedded a ScriptableButton and, separately, a RoundRect into which I have<br>
> embedded a TextMorph. (eventually, I plan to have five siblings of each of<br>
> these submorphs, but I'm trying to start the project, simply).<br>
><br>
> I think I am supposed to start programming these submorphs from my<br>
> PasteUpMorph, in which they are all directly or indirectly embedded. If I<br>
> inspect the PasteUpMorph subclass, I can see the others as submorphs of it,<br>
> but if I browse it, I don't see any objects into which to put any code. I<br>
> just see an empty PasteUpMorph.<br>
><br>
> How do I access and code the submorphs within subclasses (I think) of my<br>
> top level morph?<br>
><br>
> Tim Cuthbertson<br>
><br><br></div>No, I had not come across that example of "How to work with multiple text morphs". I will study it and your other link.<br><br></div>I am starting a project (just as an example to learn Squeak) to come up with a Yahtzee game clone. My text morphs will simply display a number that represents a randomly rolled die. The button morphs will allow the user to select whether a particular die is to be held from being rerolled. There will be an additional button to allow the user to re-roll unheld dice.<br><br></div>I have this model working in a text-based model, but I decided to try to re-implement it in a morphic GUI framework.<br><br></div>Thank you for the tips.<br><br></div>Tim Cuthbertson<br></div>