Re: scroll field to a searched-for word

2012-04-13 Thread J. Landman Gay
On 4/13/12 9:16 AM, dunb...@aol.com wrote: on mouseUp put word 2 of the clickCharChunk into myPos put the formattedText of fld 2 into myText put number of lines of (char 1 to myPos of myText) into myLineNr answer myLineNr end mouseUp This smacks of Jacque, I can't take credit

Re: scroll field to a searched-for word

2012-04-13 Thread dunbarx
hose pesky lines that hide the actual number of lines in the field. Craig Newman -Original Message- From: dunbarx To: use-livecode Sent: Fri, Apr 13, 2012 10:05 am Subject: Re: scroll field to a searched-for word Hi. You can do this by using the "formattedText" to hard wr

Re: scroll field to a searched-for word

2012-04-13 Thread dunbarx
correct line. You will want to restore the unwrapped text back into the original after you are done. I bet there are Craig Newman -----Original Message- From: Nicolas Cueto To: LiveCode - general LiveCode Sent: Thu, Apr 12, 2012 8:41 pm Subject: scroll field to a searched-for w

scroll field to a searched-for word

2012-04-12 Thread Nicolas Cueto
Hello All, Most very likely, somewhere on the list can come up much faster than I can with a method for this. My stack has a vertically-scrollable text-field with a long text, and a listbehavior field with a word on each cr-line. The effect I'm after is, when a user searches for a word by clickin