<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>(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 class="gmail_quote">On Wed, Feb 22, 2017 at 10:03 AM,  <span dir="ltr"><<a href="mailto:beginners-request@lists.squeakfoundation.org" target="_blank">beginners-request@lists.squeakfoundation.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Beginners mailing list submissions to<br>
        <a href="mailto:beginners@lists.squeakfoundation.org">beginners@lists.<wbr>squeakfoundation.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://lists.squeakfoundation.<wbr>org/mailman/listinfo/beginners</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:beginners-request@lists.squeakfoundation.org">beginners-request@lists.<wbr>squeakfoundation.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:beginners-owner@lists.squeakfoundation.org">beginners-owner@lists.<wbr>squeakfoundation.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Beginners digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re: Using squeak with a script? (H. Hirzel)<br>
   2. Re: Beginner Morphic Question (Tim Cuthbertson)<br>
   3. Re: Beginner Morphic Question (H. Hirzel)<br>
<br>
<br>
------------------------------<wbr>------------------------------<wbr>----------<br>
<br>
Message: 1<br>
Date: Wed, 22 Feb 2017 15:49:35 +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] Using squeak with a script?<br>
Message-ID:<br>
        <CAGQxfVh_a3V8qotwfQn=<wbr>BMF4Rbq098hG=BZjHjs=<a href="mailto:cph3SqG32Q@mail.gmail.com">cph3SqG32Q<wbr>@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
Maybe<br>
<br>
      ExternalCommandShell<br>
<br>
     <a href="http://wiki.squeak.org/squeak/6023" rel="noreferrer" target="_blank">http://wiki.squeak.org/squeak/<wbr>6023</a><br>
<br>
this is of some help?<br>
<br>
--Hannes<br>
<br>
On 2/22/17, Göran Krampe <<a href="mailto:goran@krampe.se">goran@krampe.se</a>> wrote:<br>
> On 21/02/17 20:51, Jacques Harmand wrote:<br>
>> Hi list,<br>
>> I try to use squeak to execute the following basic Smalltalk script (in<br>
>> a file "<a href="http://hello.st" rel="noreferrer" target="_blank">hello.st</a> <<a href="http://hello.st" rel="noreferrer" target="_blank">http://hello.st</a>>")<br>
>> "Transcript show: 'Hello world'; cr."<br>
>> from the command line with Squeak.  This works as expected with both GNU<br>
>> Smalltalk and Pharo, but with Squeak nothing happens: Squeak seems to<br>
>> wait forever.  If I add<br>
>> "Smalltalk snapshot: false andQuit: true."<br>
>> after the above line, the execution of the script terminates, but<br>
>> without printing anything.<br>
><br>
> I haven't looked closely at latest Squeak (perhaps Pharo has coupled<br>
> Transcript to stdout for headless mode?), but Transcript is not the same<br>
> thing as stdout - so you wouldn't see anything on stdout.<br>
><br>
> regards, Göran<br>
> ______________________________<wbr>_________________<br>
> Beginners mailing list<br>
> <a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.<wbr>squeakfoundation.org</a><br>
> <a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://lists.squeakfoundation.<wbr>org/mailman/listinfo/beginners</a><br>
><br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Wed, 22 Feb 2017 09:18:16 -0600<br>
From: Tim Cuthbertson <<a href="mailto:ratcheer@gmail.com">ratcheer@gmail.com</a>><br>
To: <a href="mailto:beginners@lists.squeakfoundation.org">beginners@lists.<wbr>squeakfoundation.org</a><br>
Subject: Re: [Newbies] Beginner Morphic Question<br>
Message-ID:<br>
        <CAAKzf7nSsRE=<a href="mailto:TSto62ae6FN--zN0bDOerSAooK61ioPMz7__nA@mail.gmail.com">TSto62ae6FN--<wbr>zN0bDOerSAooK61ioPMz7__nA@<wbr>mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
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<br>
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<br>
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>
No, I had not come across that example of "How to work with multiple text<br>
morphs". I will study it and your other link.<br>
<br>
I am starting a project (just as an example to learn Squeak) to come up<br>
with a Yahtzee game clone. My text morphs will simply display a number that<br>
represents a randomly rolled die. The button morphs will allow the user to<br>
select whether a particular die is to be held from being rerolled. There<br>
will be an additional button to allow the user to re-roll unheld dice.<br>
<br>
I have this model working in a text-based model, but I decided to try to<br>
re-implement it in a morphic GUI framework.<br>
<br>
Thank you for the tips.<br>
<br>
Tim Cuthbertson<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.squeakfoundation.org/pipermail/beginners/attachments/20170222/7126e970/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.<wbr>squeakfoundation.org/<wbr>pipermail/beginners/<wbr>attachments/20170222/7126e970/<wbr>attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Wed, 22 Feb 2017 17:03:08 +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:CAGQxfVguWDV7crtVyS9Tx%2B%2Bw3bhuKv45W6ThMfgRLyJO-fSqPA@mail.gmail.com">CAGQxfVguWDV7crtVyS9Tx++<wbr>w3bhuKv45W6ThMfgRLyJO-fSqPA@<wbr>mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
On 2/22/17, Tim Cuthbertson <<a href="mailto:ratcheer@gmail.com">ratcheer@gmail.com</a>> wrote:<br>
> 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>
><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<br>
> 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<br>
>> have<br>
>> embedded a TextMorph. (eventually, I plan to have five siblings of each<br>
>> 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<br>
> 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>
> No, I had not come across that example of "How to work with multiple text<br>
> morphs". I will study it and your other link.<br>
><br>
> I am starting a project (just as an example to learn Squeak) to come up<br>
> with a Yahtzee game clone. My text morphs will simply display a number that<br>
> represents a randomly rolled die. The button morphs will allow the user to<br>
> select whether a particular die is to be held from being rerolled.<br>
<br>
Then I suggest that you focus first on programming a DieMorph<br>
<br>
<a href="http://pharo.gforge.inria.fr/PBE1/PBE1ch12.html" rel="noreferrer" target="_blank">http://pharo.gforge.inria.fr/<wbr>PBE1/PBE1ch12.html</a><br>
<br>
Remember: 'Where Morphic stands out'<br>
<a href="http://wiki.squeak.org/squeak/6528" rel="noreferrer" target="_blank">http://wiki.squeak.org/squeak/<wbr>6528</a><br>
<br>
<citation><br>
The (Morphjic) framework is fully in Smalltalk; there are no<br>
"primitive" widgets or hidden functionality. This means that there are<br>
no restrictions to how a morph will appear and react. There are morphs<br>
that behave like the widgets usually found, and therefore conventional<br>
interfaces can be built. But there are more interesting visual<br>
metaphors like CurveMorph, FishEyeMorph, EnvelopeEditorMorph, or<br>
SpectrumAnalyzerMorph (see the next section with a Squeak at hand to<br>
know them). And the framework is open end extensible. It s not<br>
difficult to make new visual metaphors for our own objects, which are<br>
perfectly integrated in the system.<br>
</citation><br>
<br>
And<br>
    'Method for making Morphs'<br>
    <a href="http://wiki.squeak.org/squeak/70" rel="noreferrer" target="_blank">http://wiki.squeak.org/squeak/<wbr>70</a><br>
<br>
<br>
> There<br>
> will be an additional button to allow the user to re-roll unheld dice.<br>
><br>
> I have this model working in a text-based model, but I decided to try to<br>
> re-implement it in a morphic GUI framework.<br>
><br>
> Thank you for the tips.<br>
><br>
> Tim Cuthbertson<br>
><br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: die.png<br>
Type: image/png<br>
Size: 6879 bytes<br>
Desc: not available<br>
URL: <<a href="http://lists.squeakfoundation.org/pipermail/beginners/attachments/20170222/c579d022/attachment.png" rel="noreferrer" target="_blank">http://lists.<wbr>squeakfoundation.org/<wbr>pipermail/beginners/<wbr>attachments/20170222/c579d022/<wbr>attachment.png</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
______________________________<wbr>_________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.<wbr>squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://lists.squeakfoundation.<wbr>org/mailman/listinfo/beginners</a><br>
<br>
<br>
------------------------------<br>
<br>
End of Beginners Digest, Vol 123, Issue 3<br>
******************************<wbr>***********<br>
</blockquote></div><br></div>