<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<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>
<p><font size="4"><br>
</font></p>
<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>
<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>
<p><font size="4">I also suggest adding an optional argument for the
action, actionArgument.</font></p>
<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>
<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 class="moz-txt-link-freetext" href="http://drgeo.eu">http://drgeo.eu</a>
<a class="moz-txt-link-freetext" href="http://blog.drgeo.eu">http://blog.drgeo.eu</a></pre>
</body>
</html>