Using the Find command in IOS

J. Landman Gay jacque at hyperactivesw.com
Sun Jun 16 13:41:54 EDT 2013


On 6/15/13 4:22 PM, Howard Bornstein wrote:
> The dictionary shows that the Find command is supported in IOS, but I can't
> seem to make it work as described.
>
> I want to "find" a string in a scrolling field and have the field scroll
> automatically to that string. It works fine on the desktop but doesn't
> scroll to the found line in the IOS field (although it *does* draw a box
> around the string, which I don't actually care about).
>
> I'm not doing anything with the vscroll property of the scrolling group the
> field is in, but as far as I can tell, I shouldn't have to.
>
> Is there a way to get Find to just scroll to the found string in an IOS
> text field? Is there more that is needed beside simply using the Find
> command?
>

The field itself will scroll but that's all, you'll have to manage the 
group scroll yourself. If you're using a native iOS scroller you'll need 
to adjust that too. Probably the best way would be to note the starting 
scroll of the field before the find command, calculate the difference 
afterward, and then adjust the group and iOS scroller to the same amount.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list