How can I get shapes list which place in embedded module?

Discussion about recent product features & solutions!
3 posts • Page 1 of 1
yjsid939
Posts:13
Joined: Mon Dec 23, 2013 3:44 am

How can I get shapes list which place in embedded module?

Post by yjsid939 »

I made three panels,
1. GET_SHAPE.xml
2. GET_SHAPE_EM.xml
3. SYMBOL.xml > dyn_string dyn_strList;
>> dyn_strList = getshapes("EM","GET_SHAPE_EM.xml","",true);

but I can't get list.


Please, let me know can I get shapes list which place in embedded module.

Thank you.

fmulder
Posts:330
Joined: Wed Feb 03, 2010 9:46 am

Re: How can I get shapes list which place in embedded module?

Post by fmulder »

Look in the help file under:

"CONTROL \\ Control graphics \\ Access shapes in other panels and modules".

when you place SYMBOL.XMl then you must give this shape a nice name. E.g. "MYSYMBOL". You should then be able to adress this shape via:

setValue( "EM.EM:MYSYMBOL.RECTANGLE1", "foreCol", "red" );

Good luck and 'share the fun'

Frenk Mulder

Gertjan van Schijndel
Posts:634
Joined: Mon Aug 02, 2010 10:37 am

Re: How can I get shapes list which place in embedded module?

Post by Gertjan van Schijndel »

The function 'getShapes' takes the panel name instead of the file name of the panel.
So in your case use 'getshapes("EM", "EM", "", true)' or 'getshapes("EM", rootPanel("EM"), "", true)'.

3 posts • Page 1 of 1