Hi all,
Any advice on where to start to add new types of Connectors? I'd just like a "Decision" connector ( a diamond shape that I could type some text into) to graphically create some algorithms for a project I am working on. From there, I want to create different kinds of decision "steps" that would be subclasses of this basic "decision" connector. Then, hopefully, I can "read in" the structure to create a file based on the algorithm that will be the input for my project. Thanks in advance, Rob _______________________________________________ Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners |
On 21.03.2009, at 15:37, Rob Rothwell wrote: Hi all, You mean like the "Text Ellipse" and "Text Rectangle"? Look at NCEllipseMorph, you basically just need to change the drawOn: method. OTOH you can do this without coding, just take a polygon to make the diamond shape and embed the text in it. For convenience, adjust the layout to keep the text centered, and your done. - Bert - _______________________________________________ Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners |
Oh...I see...the Connectors package works with any Morph...!
I'll try what you mentioned...thanks! Rob On Sat, Mar 21, 2009 at 12:19 PM, Bert Freudenberg <[hidden email]> wrote:
_______________________________________________ Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners |
On 21.03.2009, at 17:56, Rob Rothwell wrote: Oh...I see...the Connectors package works with any Morph...! Hehe. You're beginning to understand what's so powerful about Morphic and Etoys.
_______________________________________________ Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners |
In reply to this post by Rob Rothwell
Hi Rob, --- On Sat, 3/21/09, Rob Rothwell <[hidden email]> wrote: > From: Rob Rothwell <[hidden email]> > Subject: Re: [Newbies] Adding new types of Connectors > To: "A friendly place to get answers to even the most basic questions about Squeak." <[hidden email]> > Date: Saturday, March 21, 2009, 12:56 PM > Oh...I see...the Connectors package works with any Morph...! Yep. Also look at StarMorphs. They can have 2 points which is a diamond. Any orientation and any aspect ratio. > > I'll try what you mentioned...thanks! > > Rob > > On Sat, Mar 21, 2009 at 12:19 PM, Bert Freudenberg > <[hidden email]>wrote: > > > > > On 21.03.2009, at 15:37, Rob Rothwell wrote: > > > > Hi all, > > > > Any advice on where to start to add new types of > Connectors? I'd just like > > a "Decision" connector ( a diamond shape > that I could type some text into) > > to graphically create some algorithms for a project I > am working on. > > > > > > You mean like the "Text Ellipse" and > "Text Rectangle"? Look > > at NCEllipseMorph, you basically just need to change > the drawOn: method. > > > > OTOH you can do this without coding, just take a > polygon to make the > > diamond shape and embed the text in it. For > convenience, adjust the layout > > to keep the text centered, and your done. > > > > - Bert - > > > > > > > > _______________________________________________ > > Beginners mailing list > > [hidden email] > > > http://lists.squeakfoundation.org/mailman/listinfo/beginners > > > > > _______________________________________________ > Beginners mailing list > [hidden email] > http://lists.squeakfoundation.org/mailman/listinfo/beginners _______________________________________________ Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners |
Free forum by Nabble | Edit this page |