handler to connect buttons with a line

Kresten Bjerg Kresten.Bjerg at psy.ku.dk
Tue Nov 1 19:42:42 EDT 2011


Thank you for replies to my first question (I repeat it, as October postings not included here) :

"I have been experimenting to create a handler (as button or menu), which will permit user
a)To select two existing moveable button
b)Create a line, attaching its endpoints to the buttons, so line will stay between them wherever they are positioned on the card.
c)It is important that same button can be connected to more buttons, thus creating a simple user-built and editable mindmap.
My experiments - I am lousy as a programmer - have  been of no avail.
Could somebody help, and sketch a handler ?
The context is that of extending the functionalities of a freeware patient/citizen diary  www.phenomenalog.dk<http://www.phenomenalog.dk> "

The previous replies suggested to specify new scripts for the buttons, but the buttons are named and produced by the user and come with a script of their own, with mouseups,  Mousewithin, mousestilldown and doomed.
The solution therefore has to follow another way, suggested outside this list by Mark Schonewille, and by Glen Boysza, namely to organize using only the custom property functions.
Thus, what I need is a "superior" handler, which will permit the user to pair and  "bond" their buttons in a flexible network :  a handler, to place in a special button, which can implement all  such  pairings:

a)      direct user to click first button, then
b) to  click second button,

b)      create their connecting line

c)       put the two button IDs into line customvariable and

d)       lineID into the customvariables of each of the two buttons (without deleting previous lineIDs !)

Unfortunately I don't have the skills to script this, - so I am hoping someone on the list, with better skills,  might give it a try.




More information about the use-livecode mailing list