Visio Guy

Visio Discussions => General Visio => Topic started by: ivan on April 05, 2009, 02:32:17 PM

Title: Help: Text postions in smartshapes
Post by: ivan on April 05, 2009, 02:32:17 PM
I've got some truobles positioning text in complicated smartshapes. see example.
smartshape is a group. there's shape data asigned for this group and there're controls in group's shape sheet to position text.
shapes inside have text fields that i want to position at controls coords. Most of the time it works well, but sometimes there're troubles i can't understand or solve.
In the posted example i can't move "Ss" (10-j5) and "Sn" (10-j5.6) text fields. when i moved controls asigned with them i got very starange behavior. what's wrong ? what was my mistake ?
Title: Re: Help: Text postions in smartshapes
Post by: JuneTheSecond on April 05, 2009, 05:05:03 PM
Hi,

Use LOC function for TextPinX and TextPinY
for example,
TextPinX=LOC(PNT(Sheet.1!Controls.Sn,Sheet.1!Controls.Sn.Y))

Title: Re: Help: Text postions in smartshapes
Post by: ivan on April 05, 2009, 05:37:03 PM
Quote from: JuneTheSecond on April 05, 2009, 05:05:03 PMTextPinX=LOC(PNT(Sheet.1!Controls.Sn,Sheet.1!Controls.Sn.Y))
works great. thanks.