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'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.

There has to be a better way!

Thanks,

Rick


On Aug 14, 2012, at 1:22 PM, Peter M. Brigham wrote:

> On Aug 14, 2012, at 9:12 AM, Rick Harrison wrote:
> 
>> I want to find or search for a particular word in an
>> iOS Scroller text field and to have the field
>> jump/scroll immediately to that found word.
>> 
>> This is not looking to be as easy as it sounds.
>> 
>> Has anyone done this, or can you please point
>> me to the correct direction on how to handle this?
> 
> Could you use
>   the formattedheight of (char 1 to (word 4 of the foundchunk) of fld x) of 
> fld x
> and then scroll down that far?
> 
> -- Peter
> 
> Peter M. Brigham

> Is the LiveCode field a scrolling field, or is it set to its formattedheight 
> and inside a group?
> 
> -- 
> Jacqueline Landman Gay         |     [email protected]
> HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to