Re: Visible lines in a scrolling field.

2011-10-14 Thread Ken Ray
On Oct 14, 2011, at 10:49 AM, Bob Sneidar wrote: > There is a property called the formattedHeight. There is also a property for > the current scroll, not sure what it is called. Once you know the number of > lines you have all the variables sorted. Between them you should get pretty > close if

Re: Visible lines in a scrolling field.

2011-10-14 Thread Bob Sneidar
There is a property called the formattedHeight. There is also a property for the current scroll, not sure what it is called. Once you know the number of lines you have all the variables sorted. Between them you should get pretty close if not dead on. Bob On Oct 13, 2011, at 10:05 PM, Ralph D

RE: Visible lines in a scrolling field.

2011-10-14 Thread Ralph DiMola
om] On Behalf Of Ken Ray Sent: Friday, October 14, 2011 1:38 AM To: How to use LiveCode Subject: Re: Visible lines in a scrolling field. On Oct 14, 2011, at 12:05 AM, Ralph DiMola wrote: > Does anyone know how to find out what lines are currently visible in a field > with a vertical scrollb

Re: Visible lines in a scrolling field.

2011-10-13 Thread Ken Ray
On Oct 14, 2011, at 12:05 AM, Ralph DiMola wrote: > Does anyone know how to find out what lines are currently visible in a field > with a vertical scrollbar? That depends… is this a list field or regular field? If a regular field, do you have dontWrap turned on, or not? > More importantly can

Re: Visible lines in a scrolling field.

2011-10-13 Thread Joe Lewis Wilkins
Ralph, I would perform some calculations based on the textHeight and scroll of the field in question. You should know how many of the field's lines are displayed so this should give you the vertical coordinates of the field; calculate the rect of the top line and select that rectangle. This sh

Visible lines in a scrolling field.

2011-10-13 Thread Ralph DiMola
Does anyone know how to find out what lines are currently visible in a field with a vertical scrollbar? More importantly can I find out just before they are scrolling into view so I can do some stuff to the line(s) just before/as they become visible? If I process all the lines (say for 2-3 hundred)