<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Hilaire,<br>
<br>
On 4/6/2022 9:33 AM, Hilaire Fernandes via Cuis-dev wrote:
<blockquote cite="mid:bd739fd7-5ff9-788d-5070-32fd2d441bc7@drgeo.eu"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p><font size="4">Hi Juan,</font></p>
<p><font size="4">The color scheme does not work for me. I
instantiate the button as:</font></p>
<p><font size="4"> ^ PluggableButtonMorph <br>
model: presenter<br>
stateGetter: (array at: 5 ifAbsent: [ #isTool: ])
"Then optional argument"<br>
action: array third ::<br>
stateGetterArgument: (array size = 5 ifTrue:[nil]
ifFalse: [array second]);<br>
icon: (DrGIcons for: array second);<br>
setBalloonText: array fourth;<br>
color: self buttonColor ;<br>
mouseOverColor: self buttonSelectedColor ;<br>
borderColor: self buttonColor muchDarker;<br>
borderWidth: 2;<br>
morphExtent: (DrGeoSystem toolbarIconSize + 4)
asPoint;<br>
adoptWidgetsColor: self buttonColor;<br>
yourself <br>
</font></p>
</blockquote>
<br>
I sent examples as workspace doits, that are easy to try. The code
you pasted above, I can't run it unless you also send me an image.<br>
<br>
<blockquote cite="mid:bd739fd7-5ff9-788d-5070-32fd2d441bc7@drgeo.eu"
type="cite"><font size="4"></font>
<p><font size="4">When the mouse is over a button or the button
state is true, I want the mouse over color as background<br>
</font></p>
</blockquote>
<br>
I tried to do that. I the workspace examples I sent, both
ButtonMorph and the modified PluggableButtonMorph become tan when
mouse over or pressed. What am I missing?<br>
<br>
<blockquote cite="mid:bd739fd7-5ff9-788d-5070-32fd2d441bc7@drgeo.eu"
type="cite">
<p><font size="4"> </font></p>
<p><font size="4">Regarding, the selector and variable names, I
suggest keeping it small to stateArgument (instead of
stateGetterArgument), there is no confusion regarding its
meaning.</font></p>
</blockquote>
<br>
Ok. Will change it.<br>
<br>
<blockquote cite="mid:bd739fd7-5ff9-788d-5070-32fd2d441bc7@drgeo.eu"
type="cite">
<p><font size="4">I also suggest adding an optional argument for
the action, actionArgument.</font></p>
</blockquote>
<br>
Ok, Will add it.<br>
<br>
<blockquote cite="mid:bd739fd7-5ff9-788d-5070-32fd2d441bc7@drgeo.eu"
type="cite">
<p><font size="4">It does not matter if the color scheme does not
work, my need may be a bit special. But it is good to have the
optional stateArgument and actionArgument.<br>
</font></p>
<p><font size="4">Hilaire<br>
</font></p>
</blockquote>
<br>
Help me understand the color scheme issue. Only after I understand,
and try an implementation, I can tell if there is any reason for not
including it in base Cuis.<br>
<br>
<blockquote cite="mid:bd739fd7-5ff9-788d-5070-32fd2d441bc7@drgeo.eu"
type="cite">
<p><font size="4"> </font></p>
<div class="moz-cite-prefix">Le 04/04/2022 à 22:10, Juan Vuletich
a écrit :<br>
</div>
<blockquote type="cite" cite="mid:624B509A.3000805@zoho.com"><br>
Please try #5097 attached. This cs breaks your ButtonMorph, for
it to work again, use attached unsavedChanges...<br>
<br>
I slightly changed some of your selectors. I tried like this.</blockquote>
<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>
Thanks,<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>
<a class="moz-txt-link-freetext" href="https://twitter.com/JuanVuletich">https://twitter.com/JuanVuletich</a></pre>
</body>
</html>