userdefined functions
Posted: 16 Jan 2015 13:33
Hi there,
is there a way to define functions by my own?
I'm thinking about a widget that shows me a bar diagramm with a connecting line from bar to bar. The problem is the connecting "line", because I have to define it as a rectangle with a rotation. So I want to design a function with the paramters x1, y1, x2, y2 (the two points that I want to connect) that give me back the rotation and the distance. I know I can do it in a seperate flow and set my variables to the local vars of the flow but then I can use it only once per script-action and I have to know the paramters before the script-action but normaly I get the paramters during the runtime of the script-action.
Thanks
Manuel
is there a way to define functions by my own?
I'm thinking about a widget that shows me a bar diagramm with a connecting line from bar to bar. The problem is the connecting "line", because I have to define it as a rectangle with a rotation. So I want to design a function with the paramters x1, y1, x2, y2 (the two points that I want to connect) that give me back the rotation and the distance. I know I can do it in a seperate flow and set my variables to the local vars of the flow but then I can use it only once per script-action and I have to know the paramters before the script-action but normaly I get the paramters during the runtime of the script-action.
Thanks
Manuel