Alignment in callouts

M

martijn600

Last week I already posted this problem, but since I posted the full story
only a few days later, some of you may have missed it.

The gist is I think I have detected a bug in Visio 2007, you could replicate
my actions and should get the same strange result.

First I created a shape including a custom property (data set) and a text
callout.
The vertical alignment in the callout is set to 'Top', and in the shape
itself the vertical alignment of the text is also set to 'Top'.
I dropped the new shape on the page, and I had to move the text call-out a
little manually by using the arrow keys. (selection behavior of the shape
default, i.e. 'Group first'.)
Now, if I enter a long line for the shape's variable in the callout, the
vertical alignment looks like 'Middle' instead of 'Top', although its values
in both the shape itself and the call-out are 'Top'.

I have dropped another instance of the new shape on the page, and entered a
long line of text for the text call-out as well. I did not move the call-out
for that shape, and here everything was fine.

I compared the ShapeSheets of the two call-outs but there was no difference!

Hopefully someone of you has a solution around this.
 
P

Paul Herber

Would you like to put the shape/document onto a webpage somewhere so
we can try it out?
 
P

Paul Herber

Hi Martijn,
What you have here are two grouped shapes, the text area is actually
another shape within the main shape, this text shape looks like it has
been moved relative to the main shape. The text shape contains
formulae to decide how the text is displayed and this depends upon the
amount of text and the dimensions of the enclosing shape.
After entering a large amount of text into the custom properties field
the if you click on the text area you will be able to move and resize
it.
Also, from the menu
View -> Drawing Explorer you will be able to see the details of the
grouped shapes. You might be better off doing this with a new blank
document as any master within the document stencil may affect what you
are seeing.
 
M

martijn600

The only useful thing in the Drawing Explorer I can do for this problem is
viewing the ShapeSheets of the text call-outs and the underlying Sheet.X
shape.
But still no differences found, neither in the formulae nor in the values.
(with the obvious exceptions the master shape they refer to and the positions)

Did you see any differences,?
 
P

Paul Herber

The only useful thing in the Drawing Explorer I can do for this problem is
viewing the ShapeSheets of the text call-outs and the underlying Sheet.X
shape.
But still no differences found, neither in the formulae nor in the values.
(with the obvious exceptions the master shape they refer to and the positions)

Did you see any differences,?

yes,
shape "Correct" subshape "Text Callout" PinY
= -Height*0.5+ThePage!User.msvDGCalloutGap

shape "Erroneous" subshape "Text Callout" PinY
= Sheet.5!Height*0.0758
 
M

martijn600

Many thanks, it wasn't a bug!
I thought that the PinY was changed because of my moving the text callout.
 
M

martijn600

The previous post was not fully correct, since I actually still think it is a
bug.
By moving the text callout, the formula of PinY should be kept the same, but
Visio changes it.
Fortunately it can be corrected manually.
 
P

Paul Herber

The previous post was not fully correct, since I actually still think it is a
bug.
By moving the text callout, the formula of PinY should be kept the same, but
Visio changes it.
Fortunately it can be corrected manually.

But it's PinX and PinY that determine the shape's position. Moving the
shape will change PinX/Y. Moving a shape manually can't really be
expected to update the formula, imagine a formula based on values
taken from several other shapes!
 

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