TOC hyperlinks to same field text below
Sivakatirswami
katir at hindu.org
Sat Mar 25 21:40:08 EST 2006
Given a field with a table of contents at the top how does one set
those links to jump the field down(up?) to the section, where the
text includes one line paragraphs and the field is set to wrap? if
you use:
on linkclicked pLinkText
find pLinkText # need to skip the first instance which is the TOC
line itself
find pLinkText # go to the section in the body below.
end linkclicked
The results are erratic.
lineoffset should work but here are wrapping issues
on linkclicked pLinkText
put lineoffset (pLinetext, me)
# how do you now scroll the field
# so that the found line is at the top?
# when some paragraphs are a single line, but actually
# many lines on screen because dontwrap is off.
# and thus line offset doesn't get you anything...
end linkclicked
1. Section One - The Best Rad Tool In the World (linked)
2. Section Two - Is there anything you cannot do with it? (linked)
3. Section three - Wow Dbase connectivity in 2.7 is great! (linked)
-------------
The Best Rad Tool In the World
test test text text test test text texttest test text texttest test
text texttest test text texttest test text texttest test text
texttest test text texttest test text texttest test text text
Is there anything you cannot do with it?
test test text text test test text texttest test text texttest test
text texttest test text texttest test text texttest test text
texttest test text texttest test text texttest test text text
Wow Dbase connectivity in 2.7 is great!
test test text text test test text texttest test text texttest test
text texttest test text texttest test text texttest test text
texttest test text texttest test text texttest test text text
??
Sivakatirswami
More information about the use-livecode
mailing list