<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="DejaVu Sans Mono">Hi, <br>
<br>
I am using package Connectors.<br>
<br>
I made my own connectors subclassing NCAAConnectorMorph [say it is
called MyCon] <br>
<br>
Now, I would like the aMyCon to change its color to black when it
is connected to other 2 morphs and be orange when it is not fully
connected. <br>
<br>
I saw there is NCAAEventsHandler with stateConnected and
stateDisconnected but I don't understand how i can use these two
events. <br>
<br>
I tried defining inside the class MyCon methods like these,
copying what I do for mouse events:<br>
------------<br>
handlesStateConnected: evt <br>
^ true<br>
<br>
stateConnected: evt<br>
self color: Color black<br>
------------<br>
<br>
It does not work.<br>
<br>
How should I do ? I don't find an example. </font><br>
<font face="DejaVu Sans Mono"><font face="DejaVu Sans Mono"><br>
Are NCAAEventsHandler</font> events recognized by
NCAAConnectorMorph ? <br>
<br>
I would like my event handler to add up to what the default event
handler does, not substituting it.<br>
<br>
bye<br>
Nicola<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</font>
</body>
</html>