AW: How to create a hyperlink within a text field?

Mark Waddingham mark at
Wed Feb 3 09:23:19 EST 2016

On 2016-02-03 14:39, Tiemo Hollmann TB wrote:
> Alternativly I also tried to work with lineOffset and setting the 
> vScoll of
> the field. The lineOffset gives me the number of the found textline, 
> but not
> the visible line number of a scrolling field with word wrap, which can 
> be
> resized. In such a field the "effective" line number can vary, 
> depending on
> the current size of the field.
> Is there anything such as the "effective lineOffset", or even better a
> direct approach to scroll to the found chunck? Probably I don't see the
> obvious.

You should be able to use the formattedRect for this.

set the vScroll of field 1 to item 2 of the formattedRect of <chunk> - 
the top of field 1

You might have to apply a small amount of 'fudge' to take into account 
any margins and such...


Mark Waddingham ~ mark at ~
LiveCode: Everyone can create apps

More information about the use-livecode mailing list