<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font size="+1">Hi Gerald, <br>
</font></p>
<p><font size="+1">That's cool, we are several persons hacking to
extend and to improve the widgetery of Cuis. This reflect with
the conversation we had a few days ago with Ken regarding
Morphic-Widget-Extra serie of packages[1].</font></p>
<p><font size="+1">Best<br>
</font></p>
<p><font size="+1">Hilaire<br>
</font></p>
<p><font size="+1">[1]
<a class="moz-txt-link-freetext" href="https://lists.cuis.st/mailman/archives/cuis-dev/2021-November/004320.html">https://lists.cuis.st/mailman/archives/cuis-dev/2021-November/004320.html</a></font><br>
</p>
<div class="moz-cite-prefix">Le 19/11/2021 à 07:36, Gerald Klix a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:fe3def3b-3963-c7b7-f862-81925214e9e3@klix.ch"><br>
Hi Hilaire,
<br>
<br>
Cool!
<br>
<br>
I have similar needs, therefore I added
<br>
something similar to Haver:
<br>
<a class="moz-txt-link-freetext"
href="https://hg.sr.ht/~cy-de-fect/HaverOnCuis/browse/haver/ui/Buttons.pck.st"
moz-do-not-send="true">https://hg.sr.ht/~cy-de-fect/HaverOnCuis/browse/haver/ui/Buttons.pck.st</a>
<br>
<br>
However there are differences, for example I also added
<br>
a selector to dynamically change the label.
<br>
<br>
My class inherits all the mouse handling from its base class.
<br>
If the user clicks a disabled button, it flashes in red:
<br>
<a class="moz-txt-link-freetext"
href="https://hg.sr.ht/~cy-de-fect/HaverOnCuis/browse/haver/ui/Buttons.pck.st#L289"
moz-do-not-send="true">https://hg.sr.ht/~cy-de-fect/HaverOnCuis/browse/haver/ui/Buttons.pck.st#L289</a>
<br>
<br>
I think this behavior gives the user better feedback,
<br>
meaning: A disabled button behaves still like an enabled
<br>
button, unless you click it.
<br>
<br>
<br>
Just my two cent,
</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>