Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How to fix the location of a text block : Visio 2003

How to fix the location of a text block : Visio 2003

How to fix the location of a text block : Visio 2003


I'm designing my own dynamic connector shape in a stencil and I need the text block of that connector in a fixed position relative to the starting point of the connector. However whatever I try the text block keeps moving when I resize the connector (change the location of the connector end).

I tried to give the TxtPinX and TxtPinY properties a fixed value and this limits the amount of moving but does not solve it. I would like to prevent that I need to group a connector with for instance a textbox because the usage of the new control is then not so straightforward anymore.

Does anybody know how to solve this problem?
Thanks for the effort!

RE: How to fix the location of a text block : Visio 2003

Well, I sort of solved this one myself after a few more hours going through the different functions available for cells. The solution to fix the location of the text block of a connector to the beginning of the connector takes two steps:
- link it to the BeginX and BeginY cells of the shape.
- Use the LOCTOLOC function to transform these coordinates to local coordinates that can be used by TxtPinX and TxtPin Y.
So something like
TxtPinX = PNTX(LOCTOLOC(PNT(BeginX, BeginY), ThePage!PageWidth, Width))
did the job.
Hope this helps someone else now.


RE: How to fix the location of a text block : Visio 2003

Excellent. Thanks a lot, you save me a lot of work!


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close