Can JavaScript determine the cursor line number in a text field?
hi,
i'm using javascript adobe acrobat 9. in program, i'll attaching already-existing text field , take action (display something) based on user's cursor @ in text field. text in text field larger size of text box have deal fact text scrolled.
in case, there way line number cursor situated @ in text field? if text wasn't scrollable, presume cusor (mouse) x-y position, , figure out line number associated cursor's position. but, alas, text scrollable.
if line number (where cursor at) isn't available, still figure things out if knew how many lines text had been scrolled. take x-y position of mouse , figure out line of text must on based on amount of scrolling that's occurred.
so, happy either:
1. way figure out line number cursor situated in text box.
2. way know how many lines of text have been scrolled.
thanks anyone's help!
dave
More discussions in Acrobat SDK
adobe
Comments
Post a Comment