Re: Scrolling by script

2012-05-21 Thread Bob Sneidar
Ah! Thanks for that. I thought there was some kind of issue posting code to the list. Bob On May 21, 2012, at 1:48 PM, Mark Wieder wrote: > Bob- > > Monday, May 21, 2012, 9:08:39 AM, you wrote: > >> On a completely unrelated topic, why do people put asterisks in >> their code before posting

Re: Scrolling by script

2012-05-21 Thread Mark Wieder
Bob- Monday, May 21, 2012, 9:08:39 AM, you 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. Seems to happen when folks post html text into emails. The listserv software forma

Re: Scrolling by script

2012-05-21 Thread Peter Haworth
Seems to happen automatically if I cut and paste from the IDE into an email. Pete lcSQL Software On Mon, May 21, 2012 at 9:08 AM, Bob Sneidar wrote: > On a completely unrelated topic, why do people put asterisks in their code > before posting it? It must serve some purpo

Re: Scrolling by script

2012-05-21 Thread Bob Sneidar
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

Re: Scrolling by script

2012-05-20 Thread Peter Haworth
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

Re: Scrolling by script

2012-05-20 Thread J. Landman Gay
On 5/20/12 1:19 PM, Peter Haworth wrote: That doesn't work. If I'm understanding it correctly, it scrolls so the the middle line in the total number of lines in the list is at the top of the list. What I need is for the selected line to be positioned in the middle of the VISIBLE lines in the li

Re: Scrolling by script

2012-05-20 Thread Peter Haworth
That doesn't work. If I'm understanding it correctly, it scrolls so the the middle line in the total number of lines in the list is at the top of the list. What I need is for the selected line to be positioned in the middle of the VISIBLE lines in the list, not the total lines. I should explain

Re: Scrolling by script

2012-05-18 Thread Bob Sneidar
Get the formatted height of the field, then set the vscroll to that div 2. That should work? If you mean "move" line 1 to the middle of the field, find out how many lines in the field, that div 2, put line 1 of the field after that line, delete line 1 of the field. Then select that line and se

RE: Scrolling by script

2012-05-18 Thread John Dixon
Are you wanting to do this under iOS ? > Date: Fri, 18 May 2012 13:43:53 -0700 > Subject: Scrolling by script > From: p...@lcsql.com > To: use-livecode@lists.runrev.com > > I"d like to scroll the selected line of a scrolling list so that it moves > to the middle of the list. Probably missing som