<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 1/27/2022 7:17 AM, Hilaire Fernandes via Cuis-dev wrote:
    <blockquote cite="mid:7186f811-a607-db57-6989-b1ff5ece9d5c@drgeo.eu"
      type="cite">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p>Hi, <br>
      </p>
      <p>Exploring...<br>
      </p>
      <p>This code below does not work (#openInWorld send to the array
        of buttons) but you get the idea of the intend.</p>
      How will you make it work, if possible,  without using a local
      variable of course ?<br>
      <pre><code><font face="monospace">RadioGroup>>example1</font></code></pre>
      <pre><code><font face="monospace">"</font></code></pre>
      <pre><code><font face="monospace">    self example1 openInWorld</font></code></pre>
      <pre><code><font face="monospace">"</font></code></pre>
      <pre><code><font face="monospace">    ^ self fromList: #('Yes' 'No') ::</font></code></pre>
      <pre><code><font face="monospace">            buttons do: [:each | </font></code></pre>
      <pre><code><font face="monospace">                    each when: #radioSelection send: #show: to: Transcript];</font></code></pre>
      <pre><code><font face="monospace">            yourself</font></code></pre>
      <p><br>
      </p>
      <p>Thanks</p>
      <p>Hilaire<br>
      </p>
      <pre class="moz-signature" cols="72">-- 
GNU Dr. Geo
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://drgeo.eu">http://drgeo.eu</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://blog.drgeo.eu">http://blog.drgeo.eu</a></pre>
    </blockquote>
    <br>
    This seems to work, only requiring #buttonsDo:<br>
    <br>
    RadioGroup >> example1<br>
    "<br>
        self example1 openInWorld<br>
    "<br>
        ^ self fromList: #('Yes' 'No') ::<br>
            buttonsDo: [:each | <br>
                each when: #radioSelection send: #show: to: Transcript];<br>
            yourself<br>
    <br>
    Cheers,<br>
    <pre class="moz-signature" cols="72">-- 
Juan Vuletich
<a class="moz-txt-link-abbreviated" href="http://www.cuis-smalltalk.org">www.cuis-smalltalk.org</a>
<a class="moz-txt-link-freetext" href="https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev">https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev</a>
<a class="moz-txt-link-freetext" href="https://github.com/jvuletich">https://github.com/jvuletich</a>
<a class="moz-txt-link-freetext" href="https://www.linkedin.com/in/juan-vuletich-75611b3">https://www.linkedin.com/in/juan-vuletich-75611b3</a>
<a class="moz-txt-link-freetext" href="https://independent.academia.edu/JuanVuletich">https://independent.academia.edu/JuanVuletich</a>
<a class="moz-txt-link-freetext" href="https://www.researchgate.net/profile/Juan-Vuletich">https://www.researchgate.net/profile/Juan-Vuletich</a>
<a class="moz-txt-link-freetext" href="https://patents.justia.com/inventor/juan-manuel-vuletich">https://patents.justia.com/inventor/juan-manuel-vuletich</a>
@JuanVuletich</pre>
  </body>
</html>