Visio Guy

Visio Discussions => ShapeSheet & Smart Shapes => Topic started by: angelic.andy on September 24, 2016, 02:50:07 PM

Title: Action Menu to Change Shape
Post by: angelic.andy on September 24, 2016, 02:50:07 PM
Hi,

I am trying to design an Action Menu to allow me to change between 5 shapes using Shapesheet.

I am stuck at the moment.

I appreciate some advice.

Thank you in advance for your time.
Title: Re: Action Menu to Change Shape
Post by: Yacine on September 24, 2016, 05:30:15 PM
That's quite a vague problem.
Title: Re: Action Menu to Change Shape
Post by: angelic.andy on September 24, 2016, 11:30:04 PM
I am trying to create an action menu whereby I can change between 5 shapes.

triangle
square
pentagon
hexagon
heptagon

What I try to create:

1) right click on triangle
2) a menu pop up showing
     triangle
     square
     pentagon
     hexagon
     heptagon
     -------------------
     Show shapesheet
3) select square
4) triangle disappear. Square should appear. However, what I ended up with was both triangle and square remained. I need to right click on the shape again to select triangle to get it to disappear.

I am trying to use only the shapesheet to make it happen.

Please advise.
Title: Re: Action Menu to Change Shape
Post by: vojo on September 25, 2016, 04:19:44 AM
1:   All shapes in 1 group
2:   Actions at group level
        create user cell    "user.trigger"   value = 0
        for square action    setf(getf(user.trigger),1)
        for circle  action     setf(getf(user.trigger),2)
        etc.
3:  In each child shape, go to geometry noshow cell
        for square no show   if(<parent>!user.trigger <>1, true,false)
        for circle no show   if (<parent>!user.trigger <> 2, true, false)

You may want to debug by echo the user.trigger in group shape
insert ==> field==> user cells ==>user.trigger
remove when working.

See my attachment under the thread "same text in multiple shapes"
posted last day or so.
Title: Re: Action Menu to Change Shape
Post by: angelic.andy on September 26, 2016, 07:09:53 AM
Thanks very much Vojo. It worked. :)