how to configure a connection in runtime |
Post Reply |
Author | |
Rui
Newbie Joined: 15 December 2017 Status: Offline Points: 7 |
Post Options
Thanks(0)
Posted: 15 December 2017 at 11:09am |
How can i in run time configure a connection line between two nodes with a broken line, or a line that make 90ยบ degress ?
At design time it's easy to broke the line and make how we want, but i need to make it at run time. |
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
|
|
Rui
Newbie Joined: 15 December 2017 Status: Offline Points: 7 |
Post Options
Thanks(0)
|
Maybe i didn't explain very well, I know how to make a connection in run time what i don't know is to make a connection like line like (see image) between node "test2" and "test3" or "test2 and "test4". At design time it's easy to change but in run time how i can do it like that ? It's a connection line but actually are two lines.
|
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
For testing I have added my code in SelectAll menu item handler. So when I press in run time SelectAll then appropriate connection line change style to CurvedArrow.
You can save pointer to desired connection or search it by name, or get it by ID and then set new style. |
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
|
|
Rui
Newbie Joined: 15 December 2017 Status: Offline Points: 7 |
Post Options
Thanks(0)
|
It was really useful your answer, thank you, but i have one more question.
After i change a straight line to a elbow line in run time how can i access in code to the new elbow line properties ? |
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Object of line still the same, you just change its style. So you can get it in the same way as before.
If you want to break straight line by code (not with mouse) - It isn't possible in ActiveX version. |
|
Rui
Newbie Joined: 15 December 2017 Status: Offline Points: 7 |
Post Options
Thanks(0)
|
Ok, thank you
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |