Re: Polygons
The problem is that the borders of a polygon are integral parts of that polygon and not somehow detachable; even if their width is set to 0 they are still there. Were it possible to set the widths of sides individually things would be quite different, but to achieve this one would probably have to assemble some of composite object (c.f. dataGrids). Richmond. On Mon, 5 Apr 2021 11:41 Terence Heaford via use-livecode, < use-livecode@lists.runrev.com> wrote: > I also have concluded this. > > If you miss out lines the opaque setting is irrelevant, it functions as > being false. > > Is this a bug? > > My work around is two polygons one underneath (filled) and the other on > top (with lines) > > You could just draw lines between the points that need them, using a > polygon as a line. I have tried this and it does not impact performance. > > Thanks for all your help > > Terry > > > > > > On 4 Apr 2021, at 19:29, Ian McKnight via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > I would hazard a guess that the fill area needs to be bounded by a line. > If > > a line is missing the fill routine can't determine where the edge of the > > fill is and so fails, leaving the grc empty. I may be completely wrong on > > this but it seems logical. > > > > Not much help I know but if you want to emphasise the edge of the bar > could > > the special effects settings help? I haven't tried his but have your bar > as > > a filled grc with out an edge and play with internal, external glows and > > shadows etc to emphasise the outline. > > > > Regards > > > > Ian > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Polygons
I also have concluded this. If you miss out lines the opaque setting is irrelevant, it functions as being false. Is this a bug? My work around is two polygons one underneath (filled) and the other on top (with lines) You could just draw lines between the points that need them, using a polygon as a line. I have tried this and it does not impact performance. Thanks for all your help Terry > On 4 Apr 2021, at 19:29, Ian McKnight via use-livecode > wrote: > > I would hazard a guess that the fill area needs to be bounded by a line. If > a line is missing the fill routine can't determine where the edge of the > fill is and so fails, leaving the grc empty. I may be completely wrong on > this but it seems logical. > > Not much help I know but if you want to emphasise the edge of the bar could > the special effects settings help? I haven't tried his but have your bar as > a filled grc with out an edge and play with internal, external glows and > shadows etc to emphasise the outline. > > Regards > > Ian ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Polygons
To simulate a graphic with no lines, set the border color to the same color as the fill. Set opaque to true. You could then overlay that with a line graphic that just has the top portion of the graph (no x-axis line.) -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On April 4, 2021 1:32:26 PM Ian McKnight via use-livecode wrote: I would hazard a guess that the fill area needs to be bounded by a line. If a line is missing the fill routine can't determine where the edge of the fill is and so fails, leaving the grc empty. I may be completely wrong on this but it seems logical. Not much help I know but if you want to emphasise the edge of the bar could the special effects settings help? I haven't tried his but have your bar as a filled grc with out an edge and play with internal, external glows and shadows etc to emphasise the outline. Regards Ian On Sun, 4 Apr 2021, 19:10 Terence Heaford via use-livecode, < use-livecode@lists.runrev.com> wrote: OK, I have changed your script by adding these lines to the mouseUp handler set the backgroundColor of grc "myPoly" to red set the forecolor of grc "myPoly" to blue Now if you switch the lines on/off you will see that the fill does not work without all lines. Not sure what this means exactly. Thanks Terry > On 4 Apr 2021, at 18:43, Ian McKnight via use-livecode < use-livecode@lists.runrev.com> wrote: > > I have to say that I'm not seeing this. > I seem to remember that graphics can't show a fill unless all lines are > visible. > As a test I created a graphic called "myPoly" . > I placed a checkbox called "showSides" (and removed its script) > in a button I placed the following script: > > - > > *on* mouseUp > > *-- points for a 100 unit square with 4 sides visible* > > *put* "50,50" &cr& "150,50" &cr& "150,150" &cr& "50,150" &cr& "50,50" &cr > into tPointsFor4Lines > > *-- points for a 100 unit square with alternate sides visible* > > *put* "50,50" &cr& "150,50" &cr& cr& "150,150" &cr& "50,150" &cr &cr& > "50,50" &cr into tPointsFor2Lines > > *set* the opaque of grc "myPoly" to true *-- ensures fill is visible* > > *if* the hilite of btn "showSides" is true > > *then* > > *set* the points of grc "myPoly" to tPointsFor4Lines *-- all sides showing* > > *else* > > *set* the points of grc "myPoly" to tPointsFor2Lines *-- alternate sides > showing* > > *end* *if* > > *end* mouseUp > > -- > > When you run this and flip between 4 and 2 sides its showing the square is > drawn correctly, > > 4 sides visible - filled and 2 sides visible - not filled > > If you check the Inspector for the graphic the opaque property hasn't > changed. > > The only way I can think to overcome this is to create another graphic - > the same size as your first one, place it underneath your graphic and group > them together. Then when all sides are visible you can make this background > graphic invisible and when sides are 'missing' make it visible again to > provide the fill or simply leave it visible since it won't be seen under > your original graphic. When sides 'disappear' and the fill disappears this > graphic will then provide your fill. > > > Hope this is of some help > > Regards > > Ian > > > On Sun, 4 Apr 2021 at 18:04, Terence Heaford via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> When you do this it appears to affect the fill settings. I lose the fill >> where there are no lines and the closure of the points also moves. >> >> I can’t believe it’s LC, it must be me. A simple script example would be >> useful if you have the time. >> >> A square, that’s easy, that has the side lines missing and is filled with >> a colour. >> >> Regards >> >> Terry >> >> >>> On 4 Apr 2021, at 15:39, Ian McKnight via use-livecode < >> use-livecode@lists.runrev.com> wrote: >>> >>> By a space I mean a blank line! >>> Ian >>> >>> On Sun, 4 Apr 2021 at 15:39, Ian McKnight > <mailto:iangmckni...@gmail.com>> wrote: >>> >>>> Hi >>>> Put a space in-between the points where you want the line in not be >>>> drawn. The shape is still con
Re: Polygons
I would hazard a guess that the fill area needs to be bounded by a line. If a line is missing the fill routine can't determine where the edge of the fill is and so fails, leaving the grc empty. I may be completely wrong on this but it seems logical. Not much help I know but if you want to emphasise the edge of the bar could the special effects settings help? I haven't tried his but have your bar as a filled grc with out an edge and play with internal, external glows and shadows etc to emphasise the outline. Regards Ian On Sun, 4 Apr 2021, 19:10 Terence Heaford via use-livecode, < use-livecode@lists.runrev.com> wrote: > OK, I have changed your script by adding these lines to the mouseUp handler > > set the backgroundColor of grc "myPoly" to red > > set the forecolor of grc "myPoly" to blue > > > Now if you switch the lines on/off you will see that the fill does not > work without all lines. > > Not sure what this means exactly. > > Thanks > > Terry > > > > On 4 Apr 2021, at 18:43, Ian McKnight via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > I have to say that I'm not seeing this. > > I seem to remember that graphics can't show a fill unless all lines are > > visible. > > As a test I created a graphic called "myPoly" . > > I placed a checkbox called "showSides" (and removed its script) > > in a button I placed the following script: > > > > > - > > > > *on* mouseUp > > > > *-- points for a 100 unit square with 4 sides visible* > > > > *put* "50,50" &cr& "150,50" &cr& "150,150" &cr& "50,150" &cr& "50,50" &cr > > into tPointsFor4Lines > > > > *-- points for a 100 unit square with alternate sides visible* > > > > *put* "50,50" &cr& "150,50" &cr& cr& "150,150" &cr& "50,150" &cr &cr& > > "50,50" &cr into tPointsFor2Lines > > > > *set* the opaque of grc "myPoly" to true *-- ensures fill is visible* > > > > *if* the hilite of btn "showSides" is true > > > > *then* > > > > *set* the points of grc "myPoly" to tPointsFor4Lines *-- all sides > showing* > > > > *else* > > > > *set* the points of grc "myPoly" to tPointsFor2Lines *-- alternate sides > > showing* > > > > *end* *if* > > > > *end* mouseUp > > > > > -- > > > > When you run this and flip between 4 and 2 sides its showing the square > is > > drawn correctly, > > > > 4 sides visible - filled and 2 sides visible - not filled > > > > If you check the Inspector for the graphic the opaque property hasn't > > changed. > > > > The only way I can think to overcome this is to create another graphic - > > the same size as your first one, place it underneath your graphic and > group > > them together. Then when all sides are visible you can make this > background > > graphic invisible and when sides are 'missing' make it visible again to > > provide the fill or simply leave it visible since it won't be seen under > > your original graphic. When sides 'disappear' and the fill disappears > this > > graphic will then provide your fill. > > > > > > Hope this is of some help > > > > Regards > > > > Ian > > > > > > On Sun, 4 Apr 2021 at 18:04, Terence Heaford via use-livecode < > > use-livecode@lists.runrev.com> wrote: > > > >> When you do this it appears to affect the fill settings. I lose the fill > >> where there are no lines and the closure of the points also moves. > >> > >> I can’t believe it’s LC, it must be me. A simple script example would be > >> useful if you have the time. > >> > >> A square, that’s easy, that has the side lines missing and is filled > with > >> a colour. > >> > >> Regards > >> > >> Terry > >> > >> > >>> On 4 Apr 2021, at 15:39, Ian McKnight via use-livecode < > >> use-livecode@lists.runrev.com> wrote: > >>> > >>> By a space I mean a blank line! > >>> Ian > >>> > >>> On Sun, 4 Apr 2021 at 15:39, Ian McKnight >> <mailto:iangmckni...@gmail.com>>
Re: Polygons
OK, I have changed your script by adding these lines to the mouseUp handler set the backgroundColor of grc "myPoly" to red set the forecolor of grc "myPoly" to blue Now if you switch the lines on/off you will see that the fill does not work without all lines. Not sure what this means exactly. Thanks Terry > On 4 Apr 2021, at 18:43, Ian McKnight via use-livecode > wrote: > > I have to say that I'm not seeing this. > I seem to remember that graphics can't show a fill unless all lines are > visible. > As a test I created a graphic called "myPoly" . > I placed a checkbox called "showSides" (and removed its script) > in a button I placed the following script: > > - > > *on* mouseUp > > *-- points for a 100 unit square with 4 sides visible* > > *put* "50,50" &cr& "150,50" &cr& "150,150" &cr& "50,150" &cr& "50,50" &cr > into tPointsFor4Lines > > *-- points for a 100 unit square with alternate sides visible* > > *put* "50,50" &cr& "150,50" &cr& cr& "150,150" &cr& "50,150" &cr &cr& > "50,50" &cr into tPointsFor2Lines > > *set* the opaque of grc "myPoly" to true *-- ensures fill is visible* > > *if* the hilite of btn "showSides" is true > > *then* > > *set* the points of grc "myPoly" to tPointsFor4Lines *-- all sides showing* > > *else* > > *set* the points of grc "myPoly" to tPointsFor2Lines *-- alternate sides > showing* > > *end* *if* > > *end* mouseUp > > -- > > When you run this and flip between 4 and 2 sides its showing the square is > drawn correctly, > > 4 sides visible - filled and 2 sides visible - not filled > > If you check the Inspector for the graphic the opaque property hasn't > changed. > > The only way I can think to overcome this is to create another graphic - > the same size as your first one, place it underneath your graphic and group > them together. Then when all sides are visible you can make this background > graphic invisible and when sides are 'missing' make it visible again to > provide the fill or simply leave it visible since it won't be seen under > your original graphic. When sides 'disappear' and the fill disappears this > graphic will then provide your fill. > > > Hope this is of some help > > Regards > > Ian > > > On Sun, 4 Apr 2021 at 18:04, Terence Heaford via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> When you do this it appears to affect the fill settings. I lose the fill >> where there are no lines and the closure of the points also moves. >> >> I can’t believe it’s LC, it must be me. A simple script example would be >> useful if you have the time. >> >> A square, that’s easy, that has the side lines missing and is filled with >> a colour. >> >> Regards >> >> Terry >> >> >>> On 4 Apr 2021, at 15:39, Ian McKnight via use-livecode < >> use-livecode@lists.runrev.com> wrote: >>> >>> By a space I mean a blank line! >>> Ian >>> >>> On Sun, 4 Apr 2021 at 15:39, Ian McKnight > <mailto:iangmckni...@gmail.com>> wrote: >>> >>>> Hi >>>> Put a space in-between the points where you want the line in not be >>>> drawn. The shape is still constructed but with missing sides. >>>> >>>> Ian >>>> >>>> On Sun, 4 Apr 2021 at 15:02, Terence Heaford via use-livecode < >>>> use-livecode@lists.runrev.com> wrote: >>>> >>>>> Thanks for that, clearly understood. >>>>> >>>>> To expand on the original question. If you have a hexagon, is it >>>>> possible to only draw lines on sides 1,3,5,6 and no lines on sides >> 2,4. >>>>> >>>>> Thanks Terry >>>>> >>>>>> On 4 Apr 2021, at 12:43, Ian McKnight via use-livecode < >>>>> use-livecode@lists.runrev.com> wrote: >>>>>> >>>>>> Yes. Polygons use a list of 4 points to describe a triangle. The >> first >>>>> and >>>>>> last are the co-ords of the same vertex to ensure closure. >>>>>> If the last point
Re: Polygons
Thanks for your example. I am basic filling underneath a line chart to make an area chart but the closing lines to the x-Axis do not have a line. I concluded to draw a polygon twice once with fill and no lines, filled to the x-Axis and overlay it with a similar polygon but not starting/finishing at the x-Axis but finishing at the first/last point. (hope this makes sense). Will play with your example. Thanks Terry > On 4 Apr 2021, at 18:43, Ian McKnight via use-livecode > wrote: > > The only way I can think to overcome this is to create another graphic - > the same size as your first one, place it underneath your graphic and group > them together. Then when all sides are visible you can make this background > graphic invisible and when sides are 'missing' make it visible again to > provide the fill or simply leave it visible since it won't be seen under > your original graphic. When sides 'disappear' and the fill disappears this > graphic will then provide your fill. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Polygons
I have to say that I'm not seeing this. I seem to remember that graphics can't show a fill unless all lines are visible. As a test I created a graphic called "myPoly" . I placed a checkbox called "showSides" (and removed its script) in a button I placed the following script: - *on* mouseUp *-- points for a 100 unit square with 4 sides visible* *put* "50,50" &cr& "150,50" &cr& "150,150" &cr& "50,150" &cr& "50,50" &cr into tPointsFor4Lines *-- points for a 100 unit square with alternate sides visible* *put* "50,50" &cr& "150,50" &cr& cr& "150,150" &cr& "50,150" &cr &cr& "50,50" &cr into tPointsFor2Lines *set* the opaque of grc "myPoly" to true *-- ensures fill is visible* *if* the hilite of btn "showSides" is true *then* *set* the points of grc "myPoly" to tPointsFor4Lines *-- all sides showing* *else* *set* the points of grc "myPoly" to tPointsFor2Lines *-- alternate sides showing* *end* *if* *end* mouseUp -- When you run this and flip between 4 and 2 sides its showing the square is drawn correctly, 4 sides visible - filled and 2 sides visible - not filled If you check the Inspector for the graphic the opaque property hasn't changed. The only way I can think to overcome this is to create another graphic - the same size as your first one, place it underneath your graphic and group them together. Then when all sides are visible you can make this background graphic invisible and when sides are 'missing' make it visible again to provide the fill or simply leave it visible since it won't be seen under your original graphic. When sides 'disappear' and the fill disappears this graphic will then provide your fill. Hope this is of some help Regards Ian On Sun, 4 Apr 2021 at 18:04, Terence Heaford via use-livecode < use-livecode@lists.runrev.com> wrote: > When you do this it appears to affect the fill settings. I lose the fill > where there are no lines and the closure of the points also moves. > > I can’t believe it’s LC, it must be me. A simple script example would be > useful if you have the time. > > A square, that’s easy, that has the side lines missing and is filled with > a colour. > > Regards > > Terry > > > > On 4 Apr 2021, at 15:39, Ian McKnight via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > By a space I mean a blank line! > > Ian > > > > On Sun, 4 Apr 2021 at 15:39, Ian McKnight <mailto:iangmckni...@gmail.com>> wrote: > > > >> Hi > >> Put a space in-between the points where you want the line in not be > >> drawn. The shape is still constructed but with missing sides. > >> > >> Ian > >> > >> On Sun, 4 Apr 2021 at 15:02, Terence Heaford via use-livecode < > >> use-livecode@lists.runrev.com> wrote: > >> > >>> Thanks for that, clearly understood. > >>> > >>> To expand on the original question. If you have a hexagon, is it > >>> possible to only draw lines on sides 1,3,5,6 and no lines on sides > 2,4. > >>> > >>> Thanks Terry > >>> > >>>> On 4 Apr 2021, at 12:43, Ian McKnight via use-livecode < > >>> use-livecode@lists.runrev.com> wrote: > >>>> > >>>> Yes. Polygons use a list of 4 points to describe a triangle. The > first > >>> and > >>>> last are the co-ords of the same vertex to ensure closure. > >>>> If the last point is left out then the line between the last vertex > and > >>> the > >>>> first vertex is not drawn. > >>>> So make sure that your list of points doesn't begin with the right > angle > >>>> vertex and you're good to go. > >>>> > >>>> Ian > >>>> > >>>> > >>>>> On Sun, 4 Apr 2021 at 12:12, Terence Heaford via use-livecode < > >>>>> use-livecode@lists.runrev.com> wrote: > >>>>> > >>>>> If I draw a shape using a polygon, as an example assume a right > angled > >>>>> triangle. > >>>>> > >>>>> Is it possible to hide the line between the points that make up the > >>>>> hypotenuse? > >>>>> > >>>>> Thanks > >>>
Re: Polygons
When you do this it appears to affect the fill settings. I lose the fill where there are no lines and the closure of the points also moves. I can’t believe it’s LC, it must be me. A simple script example would be useful if you have the time. A square, that’s easy, that has the side lines missing and is filled with a colour. Regards Terry > On 4 Apr 2021, at 15:39, Ian McKnight via use-livecode > wrote: > > By a space I mean a blank line! > Ian > > On Sun, 4 Apr 2021 at 15:39, Ian McKnight <mailto:iangmckni...@gmail.com>> wrote: > >> Hi >> Put a space in-between the points where you want the line in not be >> drawn. The shape is still constructed but with missing sides. >> >> Ian >> >> On Sun, 4 Apr 2021 at 15:02, Terence Heaford via use-livecode < >> use-livecode@lists.runrev.com> wrote: >> >>> Thanks for that, clearly understood. >>> >>> To expand on the original question. If you have a hexagon, is it >>> possible to only draw lines on sides 1,3,5,6 and no lines on sides 2,4. >>> >>> Thanks Terry >>> >>>> On 4 Apr 2021, at 12:43, Ian McKnight via use-livecode < >>> use-livecode@lists.runrev.com> wrote: >>>> >>>> Yes. Polygons use a list of 4 points to describe a triangle. The first >>> and >>>> last are the co-ords of the same vertex to ensure closure. >>>> If the last point is left out then the line between the last vertex and >>> the >>>> first vertex is not drawn. >>>> So make sure that your list of points doesn't begin with the right angle >>>> vertex and you're good to go. >>>> >>>> Ian >>>> >>>> >>>>> On Sun, 4 Apr 2021 at 12:12, Terence Heaford via use-livecode < >>>>> use-livecode@lists.runrev.com> wrote: >>>>> >>>>> If I draw a shape using a polygon, as an example assume a right angled >>>>> triangle. >>>>> >>>>> Is it possible to hide the line between the points that make up the >>>>> hypotenuse? >>>>> >>>>> Thanks >>>>> >>>>> Terry >>>>> >>>>> >>>>> >>>>> ___ >>>>> use-livecode mailing list >>>>> use-livecode@lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>> >>>> >>>> -- >>>> Regards >>>> >>>> >>>> Ian McKnight >>>> >>>> iangmckni...@gmail.com >>>> === >>>> ___ >>>> use-livecode mailing list >>>> use-livecode@lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> ___ >>> use-livecode mailing list >>> use-livecode@lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> -- >> Regards >> >> >> Ian McKnight >> >> iangmckni...@gmail.com >> === >> > > > -- > Regards > > > Ian McKnight > > iangmckni...@gmail.com <mailto:iangmckni...@gmail.com> > === > ___ > use-livecode mailing list > use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com> > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > <http://lists.runrev.com/mailman/listinfo/use-livecode> ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Polygons
By a space I mean a blank line! Ian On Sun, 4 Apr 2021 at 15:39, Ian McKnight wrote: > Hi > Put a space in-between the points where you want the line in not be > drawn. The shape is still constructed but with missing sides. > > Ian > > On Sun, 4 Apr 2021 at 15:02, Terence Heaford via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> Thanks for that, clearly understood. >> >> To expand on the original question. If you have a hexagon, is it >> possible to only draw lines on sides 1,3,5,6 and no lines on sides 2,4. >> >> Thanks Terry >> >> > On 4 Apr 2021, at 12:43, Ian McKnight via use-livecode < >> use-livecode@lists.runrev.com> wrote: >> > >> > Yes. Polygons use a list of 4 points to describe a triangle. The first >> and >> > last are the co-ords of the same vertex to ensure closure. >> > If the last point is left out then the line between the last vertex and >> the >> > first vertex is not drawn. >> > So make sure that your list of points doesn't begin with the right angle >> > vertex and you're good to go. >> > >> > Ian >> > >> > >> >> On Sun, 4 Apr 2021 at 12:12, Terence Heaford via use-livecode < >> >> use-livecode@lists.runrev.com> wrote: >> >> >> >> If I draw a shape using a polygon, as an example assume a right angled >> >> triangle. >> >> >> >> Is it possible to hide the line between the points that make up the >> >> hypotenuse? >> >> >> >> Thanks >> >> >> >> Terry >> >> >> >> >> >> >> >> ___ >> >> use-livecode mailing list >> >> use-livecode@lists.runrev.com >> >> Please visit this url to subscribe, unsubscribe and manage your >> >> subscription preferences: >> >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> > >> > >> > -- >> > Regards >> > >> > >> > Ian McKnight >> > >> > iangmckni...@gmail.com >> > === >> > ___ >> > use-livecode mailing list >> > use-livecode@lists.runrev.com >> > Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> > http://lists.runrev.com/mailman/listinfo/use-livecode >> >> ___ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > -- > Regards > > > Ian McKnight > > iangmckni...@gmail.com > === > -- Regards Ian McKnight iangmckni...@gmail.com === ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Polygons
Hi Put a space in-between the points where you want the line in not be drawn. The shape is still constructed but with missing sides. Ian On Sun, 4 Apr 2021 at 15:02, Terence Heaford via use-livecode < use-livecode@lists.runrev.com> wrote: > Thanks for that, clearly understood. > > To expand on the original question. If you have a hexagon, is it possible > to only draw lines on sides 1,3,5,6 and no lines on sides 2,4. > > Thanks Terry > > > On 4 Apr 2021, at 12:43, Ian McKnight via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > Yes. Polygons use a list of 4 points to describe a triangle. The first > and > > last are the co-ords of the same vertex to ensure closure. > > If the last point is left out then the line between the last vertex and > the > > first vertex is not drawn. > > So make sure that your list of points doesn't begin with the right angle > > vertex and you're good to go. > > > > Ian > > > > > >> On Sun, 4 Apr 2021 at 12:12, Terence Heaford via use-livecode < > >> use-livecode@lists.runrev.com> wrote: > >> > >> If I draw a shape using a polygon, as an example assume a right angled > >> triangle. > >> > >> Is it possible to hide the line between the points that make up the > >> hypotenuse? > >> > >> Thanks > >> > >> Terry > >> > >> > >> > >> ___ > >> use-livecode mailing list > >> use-livecode@lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > > > > > -- > > Regards > > > > > > Ian McKnight > > > > iangmckni...@gmail.com > > === > > ___ > > use-livecode mailing list > > use-livecode@lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Regards Ian McKnight iangmckni...@gmail.com === ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Polygons
Thanks for that, clearly understood. To expand on the original question. If you have a hexagon, is it possible to only draw lines on sides 1,3,5,6 and no lines on sides 2,4. Thanks Terry > On 4 Apr 2021, at 12:43, Ian McKnight via use-livecode > wrote: > > Yes. Polygons use a list of 4 points to describe a triangle. The first and > last are the co-ords of the same vertex to ensure closure. > If the last point is left out then the line between the last vertex and the > first vertex is not drawn. > So make sure that your list of points doesn't begin with the right angle > vertex and you're good to go. > > Ian > > >> On Sun, 4 Apr 2021 at 12:12, Terence Heaford via use-livecode < >> use-livecode@lists.runrev.com> wrote: >> >> If I draw a shape using a polygon, as an example assume a right angled >> triangle. >> >> Is it possible to hide the line between the points that make up the >> hypotenuse? >> >> Thanks >> >> Terry >> >> >> >> ___ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > -- > Regards > > > Ian McKnight > > iangmckni...@gmail.com > === > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Polygons
Yes. Polygons use a list of 4 points to describe a triangle. The first and last are the co-ords of the same vertex to ensure closure. If the last point is left out then the line between the last vertex and the first vertex is not drawn. So make sure that your list of points doesn't begin with the right angle vertex and you're good to go. Ian On Sun, 4 Apr 2021 at 12:12, Terence Heaford via use-livecode < use-livecode@lists.runrev.com> wrote: > If I draw a shape using a polygon, as an example assume a right angled > triangle. > > Is it possible to hide the line between the points that make up the > hypotenuse? > > Thanks > > Terry > > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Regards Ian McKnight iangmckni...@gmail.com === ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Polygons
If I draw a shape using a polygon, as an example assume a right angled triangle. Is it possible to hide the line between the points that make up the hypotenuse? Thanks Terry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Bug with polygons
Yes. I have it too here, in LC 9.0.2 and LC 8.1.10. Did you already report the bug? Currently we could use as a workaround to disable the graphic, from the message box, for simple scenarios. And set the foreColor of it to have a full color. > Michael K. wrote: > Non-Opaque polygons block the mouse click, when their > lineSize is greater than 9. (This figure varies) ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Bug with polygons
Hi there Mac, Livecode 9.02 Non-Opaque polygons block the mouse click, when their lineSize is greater than 9. (This figure varies) You can test the bug in this little stack. https://www.dropbox.com/s/7rsa9qo7fi1295e/Polygon%20Bug.zip?dl=0 Michael ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Anyone break Regular Polygons?
I'm not convinced that you broke it, Ken. If you did, I want to know how you got into my office... I ran into approximately this problem the other day. I think that there are two things going on here. The less important is that at some point the default number of sides for the polygon object was set to 12, which is a silly default not least because it's not even one of the choices on the number-of-sides dropdown (located two rows below on the toolbox, apologies if you knew that). My guess is that someone at RunRev happened to have it set that way and accidentally saved changes, and it's been shipping that way ever since. (On a quick check, it's been that way for a while; but in 4.0, it was 8 sides.) The more significant is a bug (I think it's a bug) in which a newly dragged object is displayed as if it were selected; and in some ways it is; but it's not exactly. I find it hard to be more precise than that. Normally there are two modes that you can be in, in the IDE: browse and select. But when dragging a polygon out, the Tools Palette changes to reflect being in neither mode; and I think that's indicative that the IDE is in some intermediate state. It's a bit messy. For example I find that if you create a regular polygon using the 'New Control' menu item, then the Tools Palette doesn't change mode: if it was in browse mode, it stays in browse mode; if it was in pointer mode, it stays in pointer mode. In either case the polygon is displayed as selected, but if you were in browse mode, the handles are not draggable. If there is an open unlocked inspector, then in either case it will switch to inspect the new graphic. So it's partially selected! (For extra variation: when created using the 'New Control' menu item, the new regular polygon has four sides, regardless of the setting on the Tools Palette.) I haven't just now reproduced the issue where the inspector is unexpectedly inspecting the stack - but I had exactly that issue the other day. My guess is that this is all related to the mysterious EditMode property, introduced to allow end users to manipulate graphics outside the IDE. But that's just a guess. Here be bugs. A good person would open an report in the RQCC. Sadly I'm feeling a bit St Augustine tonight. You? Ben On 20/02/2012 17:45, Ken Corey wrote: Hi All, I thought to myself "I could use a Regular Polygon here..." So I clicked on the diamond shape in the toolbox, and started to draw one on my card. It defaulted to 12 sides, about 8 more than I wanted. Once I let go of the mouse button, the Regular Polygon was deselected, and the open Property Inspector started inspecting the stack instead of the Regular Polygon. If I click on the polygon, the handles appear, the inspector changes to reflect the polygon, and then the handles go away and the inspector points at the stack again. Thisi happens on my Mac OSX 10.6.8 Livecode 5.2, and now OSX 10.7.2 Livecode 5.5. Okay, so I go to try it on Windows...(Win 7 64 bit, 5.5.0 dp1) I can draw the poly, and it stays selected, but when I right click on it and select "inspector", nothing happens. If I already have the inspector open and then click on the grc, I can see and change things in the inspector. Just as a side note, I hover over 'Sides' to see what the property name is, and no joy. All other properties have a tooltip, but not sides. *grr* (Yes, I did look in the dictionary and can see it's "polySides", but something seems broken in the interface.) Has anyone seen this behaviour before? I'm sure I broke things as this strange behaviour existed before the 5.5.0_dp1 drop, but I have no idea how. -Ken ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Anyone break Regular Polygons?
Hi All, I thought to myself "I could use a Regular Polygon here..." So I clicked on the diamond shape in the toolbox, and started to draw one on my card. It defaulted to 12 sides, about 8 more than I wanted. Once I let go of the mouse button, the Regular Polygon was deselected, and the open Property Inspector started inspecting the stack instead of the Regular Polygon. If I click on the polygon, the handles appear, the inspector changes to reflect the polygon, and then the handles go away and the inspector points at the stack again. Thisi happens on my Mac OSX 10.6.8 Livecode 5.2, and now OSX 10.7.2 Livecode 5.5. Okay, so I go to try it on Windows...(Win 7 64 bit, 5.5.0 dp1) I can draw the poly, and it stays selected, but when I right click on it and select "inspector", nothing happens. If I already have the inspector open and then click on the grc, I can see and change things in the inspector. Just as a side note, I hover over 'Sides' to see what the property name is, and no joy. All other properties have a tooltip, but not sides. *grr* (Yes, I did look in the dictionary and can see it's "polySides", but something seems broken in the interface.) Has anyone seen this behaviour before? I'm sure I broke things as this strange behaviour existed before the 5.5.0_dp1 drop, but I have no idea how. -Ken ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode