News:

Happy New Year!

Main Menu

Action Menu to Change Shape

Started by angelic.andy, September 24, 2016, 02:50:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

angelic.andy

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.

Yacine

Yacine

angelic.andy

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.

vojo

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.

angelic.andy


Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 209 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1059KB.
Tokens: post-login.
Cache hits: 13: 0.00125s for 26,600 bytes (show)
Cache misses: 3: (show)
Queries used: 16.

[Show Queries]