D
Dieter Sternberg
Hi,
Visio put's a green rectangle with sizing handles around a selection of
multiple shapes.
I need the coordinates (bottem/left)(top/right) of this rectangle in
page coords to check whether the user has clicked a mouse button inside
or outside the selection boundingbox.
A little experimenting shows that the rectangle drawn by visio is
slightly larger then ActiveWindow.Selection.BoundingBox depending on
zoomlevel.
But the major problem is, that I can't get Selection.BoundingBox to work
if the selection contains subselected shapes of a group.
Selection.BoundingBox returns only the bounding box of the shapes that
are directly on the page.
I've tried nearly every combination of the flags. Selection.BoundingBox
even doesn't care about the IterationMode. The Selection.Count is shown
correct when applying visSelModeSkipSuper, but the subselected shapes
are not included in the bounding box.
Is this a bug or do I miss some secret?
How can I get the bounding box of a selection containing subselected shapes?
Regards
Dieter
Visio put's a green rectangle with sizing handles around a selection of
multiple shapes.
I need the coordinates (bottem/left)(top/right) of this rectangle in
page coords to check whether the user has clicked a mouse button inside
or outside the selection boundingbox.
A little experimenting shows that the rectangle drawn by visio is
slightly larger then ActiveWindow.Selection.BoundingBox depending on
zoomlevel.
But the major problem is, that I can't get Selection.BoundingBox to work
if the selection contains subselected shapes of a group.
Selection.BoundingBox returns only the bounding box of the shapes that
are directly on the page.
I've tried nearly every combination of the flags. Selection.BoundingBox
even doesn't care about the IterationMode. The Selection.Count is shown
correct when applying visSelModeSkipSuper, but the subselected shapes
are not included in the bounding box.
Is this a bug or do I miss some secret?
How can I get the bounding box of a selection containing subselected shapes?
Regards
Dieter