This might be something I need to do in a different context. I had been
thinking of using the metadata property of the lines referenced by the
links as a means to locate the correct line. Is that a plausible solution?
On Thu, Feb 4, 2016 at 1:29 PM BNig wrote:
> J. Landman Gay wrote
> > The fo
J. Landman Gay wrote
> The formattedtext returns the correct metrics for me even when the field
> size is changed and the text re-wraps. Do you get different results?
If you make the field not wide enough it it can happen that the chapter
title breaks. The same if you give the user the option to
On 2/4/2016 4:22 AM, BNig wrote:
I like Jaques solution too because it is unequivocal because of the hash.
But Tiemo allows the user to change the width of the field, see his
crossposting to the forum
http://forums.livecode.com/viewtopic.php?f=9&t=26468
That is where Jaque's solution can fail b
I posted 5 stacks with different solutions to Tiemo's problem
> I want to create a kind of text hyperlink in a resizable scrolling field
> with word wrap.
>
> I have a long text field with a table of contents at the beginning and
> headlines for chapters and I would like to make the table of con
Tiemo Hollmann TB wrote
> Thanks Jacque,
>
>>>Create or import a transparent 1x1 pixel image. Hide it. Make each line
in
>>>the table of contents into linked text. The html of each line looks like
> this:
> Chapter one
>
> In the body text of the field, place a marker character before the chapt
Thanks Jacque,
I like it everytime to see the variety of solutions on the same issue. I
think yours is the most elegant and compact one.
Tiemo
-Ursprüngliche Nachricht-
Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag
von J. Landman Gay
Gesendet: Donnerstag, 4. F
Hi,
Bernd and I had once a long thread in the forum about selecting
text where we found *the selectedLoc* to be very useful.
Means here:
[1] When writing the chapters mark their offset in your text in a
separate list, one line per mark [or as metadata of each link].
[2] Then walk once through th
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 fie
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