Re: Text Flow

2015-09-16 Thread Mike Doub
Thanks for the heads up.   I will start working on an update. -= Mike On Sep 16, 2015, 3:52 PM, at 3:52 PM, BNig wrote: >Michael, > >you might want to test your library against 7.1 and 8. series of >current LC >versions. > >Floor is now a reserved word for the built-in function and the libra

Re: Text Flow

2015-09-16 Thread BNig
Michael, you might want to test your library against 7.1 and 8. series of current LC versions. Floor is now a reserved word for the built-in function and the library throws an error at startup and the stack will not work as intended. Kind regards Bernd -- View this message in context: http:/

Re: Text Flow

2015-09-16 Thread Charles Szasz
Mike, Thanks for bring your library to my attention! I definitely take a look at it and try it. Sent from my iPad ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

Re: Text Flow

2015-09-16 Thread Charles Szasz
Thanks Jim and Berd! I will try your script suggestions later today after work! Sent from my iPad ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http

Re: Text Flow

2015-09-16 Thread Mike Doub
There is a routine in the masterlibrary that calculates soft line wraps to solve the wrapping problem to which James referred.  I created it when I used the hidden field approach simulating page turning. https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 On Sep 16, 2015,

Re: Text Flow

2015-09-16 Thread BNig
Hi James, I had forgotten about pageRanges since I never used it since it was introduced in LC 6.1. It is a lot easier than using formattedText. Thank you Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Text-Flow-tp4696328p4696335.html Sent

Re: Text Flow

2015-09-16 Thread James Hale
One way is to have a hidden field the dimensions you want. Put the text into this field first and then get the pageranges of this field. It will return a list of character ranges, one per line, for each field (of the hidden field's size) required. So the number of lines will tell you how many fi

Re: Text Flow

2015-09-16 Thread BNig
Hi Charles, I gave this a try with 4 fields. Field "source" contains the whole text Then there are 3 identical output fields fOut1, fOut2, fOut3 these three output field all have the same height and width and textHeight. And textHeight is fixed. The trick is to use formattedText -> see dictionar

Re: Text Flow

2015-09-15 Thread Charles Szasz
Yes, you are correct about what I am trying to accomplish. I tried using formattedTextHeight in several scripts, which did not work. I would appreciate any specific scripts you may have that I could try. Sent from my iPad ___ use-livecode mailing list

Re: Text Flow

2015-09-15 Thread dunbarx
Charles. When you say the initial field is filled, do you mean that you want to detect that condition, and move any new data to other fields? So that if you were placing data into a field that could contain ten lines without scrolling, say, and five of those lines were occupied, that you would