Dynamic connector, locked text need to move it

J

Jack D

I have made my own dynamic connector, and have put 2 custom properties
on it

Id
Name

The text on the dynamic connector is linked to the Name, so what stands
in the name cell stands on the shape.
Now to prevent the users from double clicking the connector and change
the text, so this link is destroyed, i have protected the connector by
setting the cell LockTextEdit = 1.

The problem is, that the user should be able to move the text on the
connector, but he cant do that because of the LockTextEdit protection.

Is there a way to protect the Link between text on connector and custom
property, without setting the the LockTextEdit. So the user can move
the text, but not edit it?
 
J

JuneTheSecond

One of the way might be to add a Control Point and set text location on the
Control Point. User can move the text by moving the Control point.
You could do it by opening the shape sheet, adding a Control Point and
editing TextPinX cell and TextPinY cell in the Text Transform section to
"Controls.Row_1" and "Controls.Row1.Y" each. Number of Row varies, if your
connector has Control Points.
 
J

Jack D

Thanks, works fine

only one thing i want to add
remember to guard() the textPin x and y, or else they will be overwritten,
when you move the connector.

"JuneTheSecond" skrev:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top