Livecode/iOS Find and Scroll To
J. Landman Gay
jacque at hyperactivesw.com
Wed Aug 15 00:49:58 EDT 2012
On 8/14/12 10:05 PM, Rick Harrison wrote:
> Hi Peter & Jacqueline,
>
> The field is a native iOS control field so I don't think formatted height
> is going to get me out of this one so easily.
>
> What I've come up with thus far is that I'm using a mirrored approach
> with a LiveCode field as my test subject. I set the font and text size to
> the same as used in the iOS native field. The find is performed in the
> LiveCode field. I then grab the parameters I need such as the vScroll
> value and then scroll the iOS native field to the same position minus
> a slight adjustment value to bring the found text to the center of the
> scrolling field. (So somewhat similar in concept to what Peter was suggesting.)
I see, it's an input field, not a scrolling field. You're doing pretty
much what I was going to suggest. I do like the formattedheight idea;
you can keep your LiveCode field invisible that way and just use it for
the calculations.
>
> I'd like to programmatically select the text in the iOS field, but have
> yet to find a way that isn't some crazy work around, like I've been
doing.
I can't even find a crazy workaround for selections.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list