While I don't have a routine to hand, I seem to recall needing to iterate through every character examining its charPosToLoc() and looking for a locV change.
That seems to work.
Since "linecount" returns the number of wrapped lines ("the number of lines of -" returns the CR'd amount)
It'd've been useful to be able to extract a "spline" as a property from a single argument with Lingo.
I've developed the beginnings of a handler that will allow me to do what I want by checking the LocV of each character.
I might now build an array of start and end char numbers, and feed that to "SelStart" and SelEnd" to get a selection. I'm wondering how much memory an array of eraps of text might take; But the array is unnecessary.
I can do what I want with the vertical scroll position of the characters.
meanwhile: play Pokey's Puzzle Page ... Thanks.
1 person found this helpful
Just a small optimization, but you don't need to actually iterate through every character... you can just choose 1 character from each word... since each word will have the same vertical location.