Keep fixed shape position within group?

Started by jimdoria, May 24, 2010, 03:45:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jimdoria

Hi -

I'm sure this has been asked and answered before, but I've searched through the forums here and on Google and haven't been able to find a solution.

I'm trying to create a shape with a "flag" - the flag is a small shape that is never scaled and always appears in the upper-right corner of another shape (a rectangle).

I've managed to get it mostly working, except for when the group is resized vertically. The "flag" shape always ends up drifting down from the corner as the height of the rectangle is increased.



I've tried tying the PinX of the flag to the height of the rectangle and the PinX of the rectangle. I've tried setting different ResizeMode settings, I've tried setting DontMoveChildren to True on the group. Nothing is working.

Can someone give me an idea of what I'm doing wrong? Thanks!

Paul Herber

Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

Yacine

Hi Jimdoria,
the fastest would be to
1) set the behaviour of the flag to reposition only
2) set it's pinX+Y to top-center (my flag is rotated by -45°)
3) in the shapesheet set it's width and height to guard(a number)
Yacine

Yacine

Yacine

vojo

flag piny = guard(sheet.7!height - 4mm)

This will hold the flag at a fixed offset from the upper "edge" of the hosting shape.
Can do same for pinx so that flag is always at the edge  pinx = guard(sheet.7width - 3mm)

jimdoria

Thanks for the replies, everyone! I'm looking at them now... Get back soon  ;)