Programmatically attaching a connector
Hernan Tylim
htylim at yahoo.com.ar
Thu Nov 24 19:07:49 UTC 2005
Hi Jim,
| a b c |
a _ BorderedMorph new.
b _ EllipseMorph new.
a openInWorld.
b openInWorld.
c _ NCConnectorMorph fromMorph: a toMorph: b.
c openInWorld.
For more complex use cases look at Jacarandá (on Squeakmap). More
precisely at JacarandaShape and JacarandaShapeConnection hierarchy.
Regards,
Hernán
Jim Rosenberg wrote:
> Sorry if this was discussed before ...
>
> Does someone have a code snippet that shows how to programmatically
> attach a Connectors connector between two given morphs? Ideally this
> would be for the older Connectors 1, not Connectors 2, but if someone
> has this for Connectors 2 I'm sure I could extrapolate.
>
> -Thanks, Jim
>
>
___________________________________________________________
1GB gratis, Antivirus y Antispam
Correo Yahoo!, el mejor correo web del mundo
http://correo.yahoo.com.ar
More information about the Squeak-dev
mailing list
|