Re: Using polygon as line and childControlNames

2014-12-08 Thread Terence Heaford
Tried this and as you suggested it worked on 7.0.1. I had changed my stack to use the childControlIDs but with your experiment below working changed it back to using childControlNames and it now works, don’t know why but it does. The gremlins strike again. I think using childControlIDs is the s

Re: Using polygon as line and childControlNames

2014-12-08 Thread Mike Bonner
If the template grc is being set to polygon prior to creation, it SHOULD be named polygon. Polygons appear named as polygons. If you leave out the set style line, then an unnamed polygon shows in which case the engine defers it to "graphic id " The first example you used, creates the grc, then set

Re: Using polygon as line and childControlNames

2014-12-08 Thread Geoff Canyon
I created a group and set this as the script: on drawLine x,y,x1,y1,tColor lock screen set the style of the templateGraphic to polygon put x & "," & y & return & x1 & "," & y1 into tPoints create grc in me put the id of the last grc of me into tID set the foregroundColor of of gr

Re: Using polygon as line and childControlNames

2014-12-08 Thread Geoff Canyon
Mac with Yosemite 10,10,1 here. I've only checked in LC 7.0.0. On Mon, Dec 8, 2014 at 9:51 AM, Terence Heaford wrote: > I’m using a Mac with Yosemite 10.10.1 > > Are you Windows or Linux? That may explain it. > > All the best > > Terry > > > > On 8 Dec 2014, at 14:46, Geoff Canyon wrote: > > >

Re: Using polygon as line and childControlNames

2014-12-08 Thread Terence Heaford
I’m using a Mac with Yosemite 10.10.1 Are you Windows or Linux? That may explain it. All the best Terry > On 8 Dec 2014, at 14:46, Geoff Canyon wrote: > > On Mon, Dec 8, 2014 at 2:33 AM, Terence Heaford > wrote: > >> Thanks, this does work but I am confused why childControlNames only >> re

Re: Using polygon as line and childControlNames

2014-12-08 Thread Geoff Canyon
On Mon, Dec 8, 2014 at 2:33 AM, Terence Heaford wrote: > Thanks, this does work but I am confused why childControlNames only > returns POLYGON and not "graphic id 1011" as "graphic id 1011” is it’s > actual name as I have not renamed it. > No idea. It's not doing that for me. ___

Re: Using polygon as line and childControlNames

2014-12-07 Thread Terence Heaford
Thanks, this does work but I am confused why childControlNames only returns POLYGON and not "graphic id 1011" as "graphic id 1011” is it’s actual name as I have not renamed it. All the best Terry This works for those who come across this in their stacks: on deleteChart lock screen repeat

Re: Using polygon as line and childControlNames

2014-12-07 Thread Geoff Canyon
On Sun, Dec 7, 2014 at 4:17 AM, Terence Heaford wrote: > There seems to be a bug with childControlNames in LC 7.0.1(RC3) as it all > works correctly in LC 6.7.1(RC3). > I think perhaps your code is taking advantage of a quirk in LC. If you don't give an object a name, the childcontrolnames retur

Re: Using polygon as line and childControlNames

2014-12-07 Thread Earthednet-wp
Terry, Try "delete object of group me" I had a similar issue and this fixed it. Bill William Prothero http://es.earthednet.org > On Dec 7, 2014, at 1:17 AM, Terence Heaford wrote: > > I use polygons to draw a line using this script. Me is a group. > > on drawLine x,y,x1,y1,tColor > lock scr

Using polygon as line and childControlNames

2014-12-07 Thread Terence Heaford
I use polygons to draw a line using this script. Me is a group. on drawLine x,y,x1,y1,tColor lock screen set the style of the templateGraphic to polygon put x & "," & y & return & x1 & "," & y1 into tPoints create grc in me put the id of the last grc of me into tID set the foregr