Inteligent shape with macro

Started by nitra_ma, October 31, 2017, 06:01:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nitra_ma

Hi,

I want to be able to create shapes stored in a "stencil"  (VSS) and that can use some macros.  So here a couple of questions :
- Where I must store the macros (probably in the stencil file,but do I need to put it in the "THISDOCUMENT" section or in the "modules" section
- How execute the macro when I double click it (cell  EventDblClick = RUNMACRO("?????????.TheNameOfTheMacro")   I ust replace "??????" with what
- In the macro, How can I know wich shape execute the macro
- Can I pass an argument to the macro when it is called

What I try to do is a macro that find the shapes based on one tag in the USER section.  I want to find another shape that have same fields that the one I double click on it.

Browser ID: smf (is_webkit)
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: 131 (show)
Files included: 34 - 1317KB. (show)
Memory used: 1053KB.
Tokens: post-login.
Cache hits: 14: 0.18589s for 26,584 bytes (show)
Cache misses: 2: (show)
Queries used: 17.

[Show Queries]