Scrolling by script

Peter Haworth pete at lcsql.com
Mon May 21 12:24:13 EDT 2012


Seems to happen automatically if I cut and paste from the IDE into an email.
Pete
lcSQL Software <http://www.lcsql.com>



On Mon, May 21, 2012 at 9:08 AM, Bob Sneidar <bobs at twft.com> wrote:

> On a completely unrelated topic, why do people put asterisks in their code
> before posting it? It must serve some purpose, but I can't deduce what it
> may be.
>
> Bob
>
>
> On May 20, 2012, at 1:15 PM, Peter Haworth wrote:
>
> > That works as you said it would but if the selected line is not in the
> > middle third of the lines, it's not visible.
> >
> > The following code seems to work:
> >
> > *i*f the hilitedline of me > 12 then
> >
> >  set the vscroll of me to (word 2 of the selectedline of me - 12) * the
> > textheight of me
> >
> > end if
> >
> > *
> > *
> >
> > 12 is the magic number because it's half the number of visble lines in
> the
> > list.
> >
> > Pete
> > lcSQL Software <http://www.lcsql.com>
> >
> >
> >
> > On Sun, May 20, 2012 at 11:26 AM, J. Landman Gay
> > <jacque at hyperactivesw.com>wrote:
> >
> >> Try div 3 instead of div 2. That should set the scroll so that a third
> of
> >> the text is off the top, a third is in the middle, and the bottom third
> >> trails below.
> > _______________________________________________
> > 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
>



More information about the use-livecode mailing list