How to divide card with/in 3 vertical lines?

William de Smet williamdesmet at gmail.com
Wed Oct 28 16:54:58 EDT 2020

```Thanks all,

The use of 1.3333 or (cardWidth/4)*3 did it!

Greetings,

William

Op wo 28 okt. 2020 om 21:28 schreef Brian Milby via use-livecode <
use-livecode at lists.runrev.com>:

> Need to either use 1.3333 or for exact (in this case) (cardWidth/4)*3
>
> Sent from my iPhone
>
> > On Oct 28, 2020, at 4:16 PM, William de Smet via use-livecode <
> use-livecode at lists.runrev.com> wrote:
> >
> > ﻿Hi Scott,
> >
> > Line 3 should be at loc 768,384 but is now at loc 770,384 (stack
> 1024x768).
> > This is because 'cardWidth/1.33' is not precise enough?
> >
> > Greetings,
> >
> > William
> >
> >
> >
> >
> > Op wo 28 okt. 2020 om 20:54 schreef scott--- via use-livecode <
> > use-livecode at lists.runrev.com>:
> >
> >> When you say "almost perfect but not quite” what exactly are you
> meaning?
> >>
> >> —Scott
> >>
> >>> On Oct 28, 2020, at 11:04 AM, William de Smet via use-livecode <
> >> use-livecode at lists.runrev.com> wrote:
> >>>
> >>> Hi there,
> >>>
> >>> I need 3 vertical lines in my iOS app with equal distance and from top
> to
> >>> bottom.
> >>> So I use the script below. It is almost perfect but not quite.
> >>> Is there a better way to do this?
> >>> ------
> >>> *s*et the loc of grc "line1" to cardWidth/4, cardHeight/2
> >>> set the loc of grc "line2" to cardWidth/2, cardHeight/2
> >>> set the loc of grc "line3" to cardWidth/1.33, cardHeight/2
> >>>
> >>> set the height of grc "line1" to cardHeight
> >>> set the height of grc "line2" to cardHeight
> >>> set the height of grc "line3" to cardHeight
> >>> ------
> >>>
> >>> greetings,
> >>>
> >>> William
> >>> _______________________________________________
> >>> use-livecode mailing list
> >>> use-livecode at 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 at 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 at 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 at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
```