<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Hilaire,</p>
<div class="moz-cite-prefix">On 2026-01-27 1:53 PM, Hilaire
Fernandes via Cuis-dev wrote:<br>
</div>
<blockquote type="cite"
cite="mid:7810acd5-7625-4838-9d1d-36182b3e729d@free.fr">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p><font size="4">Hi Juan, </font></p>
<p><font size="4">This issue is very special and most of the time
unlikely. It occurs when editing by code an attribute which
is normally set by GUI.</font></p>
<p><font size="4">As I don't want the user to be restricted by the
GUI choice of color when editing by code, this issue will
raise.</font></p>
</blockquote>
<p><font size="4">And it needs to be fixed.</font></p>
<blockquote type="cite"
cite="mid:7810acd5-7625-4838-9d1d-36182b3e729d@free.fr">
<p><font size="4">The question is do we want this kind of
situation to be fixed downstream or upstream. Upstream it will
be useful in other similar situation. Fixing downstream can
help to make some smart things, as adding the a morph color to
the dropdownlist, but it will not be a generic solution.</font></p>
</blockquote>
<p><font size="4">In my opinion it is the drop down list who needs
to know what to do in those cases. The current value is not one
of the options. Adding it as an option would make sense to me.</font></p>
<p><font size="4">Fixing it "upstream" is a bit like modifying Array
to accept out of range indexes. It will end hiding bugs. It is
the kind of thing that make Perl or Javascript bad languages.</font></p>
<blockquote type="cite"
cite="mid:7810acd5-7625-4838-9d1d-36182b3e729d@free.fr">
<p><font size="4">It can be handled in DropDownButtonMorph by
catching the error, but I find this inelegant, but may be it
is not the case. </font></p>
<p><font size="4">Hilaire</font></p>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://mamot.fr/@drgeo"
moz-do-not-send="true">http://mamot.fr/@drgeo</a></pre>
</blockquote>
<p>That's to be decided by DropDownButtonMorph. I wouldn't call it
"catching the error" but "handling absent values".</p>
<pre class="moz-signature" cols="72">--
Juan Vuletich
<a class="moz-txt-link-abbreviated" href="http://www.cuis.st">www.cuis.st</a>
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich</pre>
</body>
</html>