[Newbies] Invisible Connectors
Chris Cunningham
cunningham.cb at gmail.com
Thu Jul 11 16:02:47 UTC 2019
Hi.
I just tried your methods and see that it works in my image. Rooting
around, I see that I made a change to NCLineMorph to comment out a check
for balloonCanvas or postscritpCanvas, and instead just claim the canvas
isn't one of those. With this change, I can see the connector; without, I
cannot.
I haven't figured out why this change is needed, and so haven't pushed it
into the main repository. I have attached a changeset with just this
change that should (I hope) make it work for you.
Thanks,
cbc
On Thu, Jul 11, 2019 at 3:25 AM Nicola Mingotti <nmingotti at gmail.com> wrote:
> Hi,
>
> I am just starting with Squeak, it is something completely different from
> all other programming languages/environments I saw before. Very
> interesting.
>
> I am using Squeak 5.2 for Linux (under FreeBSD-12 Linux compatibility
> layer), it works.
>
> Coming to the question. I found this package called Connectors. I tried to
> connect some Morphs with "Curvy Arrow" and it all works fine, clicking on
> the GUI. But, if I try make a connector from the Workspace I can't see the
> line and I don't understand well what happens.
>
> For example, If i run this code
> ----- https://wiki.squeak.org/squeak/1773 -----
>
> green := Morph new
> color: Color green;
> position: 100 at 200;
> openInWorld.
>
> red := Morph new
> color: Color red;
> position: 100 at 300;
> openInWorld.
>
> c2 := NCAAConnectorMorph new
> connectStartTo: green ;
> connectFinishTo: red ;
> openInWorld.
>
> ------------------------------------------
>
>
> I see the two rectangles but I don't see the connector.
>
> I tried to inspect madly the "c2" object but I can't find how it is
> different from a Curvy Arrow that is actually displayed.
>
> I installed Connectors via SqueakMap, the latest release I saw (I can't
> see the number now, probably because the package is already installed).
>
> Any ideas ?
>
> bye
> Nicola
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/beginners/attachments/20190711/efd39f47/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NCLineMorphDrawon.1.cs
Type: application/octet-stream
Size: 914 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/beginners/attachments/20190711/efd39f47/attachment.obj>
More information about the Beginners
mailing list