[ANN] Release 13 of the MasterLibrary is available
Michael Doub
mikedoub at gmail.com
Sat Nov 22 12:16:57 EST 2014
Version 13 is available with the issue causing me to pull 12 is
resolved. I also added another function that was created to help me do
additional validation of the other positioning routines. I think this
may be useful in general.
Enjoy...
Mike
Release 13
* fixed a bug in __DummyTextData that was not allowing spaceabove and
below to be inserted properly
* fixed of bug in the __positionCharInFld that was masked by the not
testing all conditions.
* Added __LineRanges fuction, This routine returns data for each
visable line within a requested
field. startchar, endchar, height, wrap-position, spaceabove,
spacebelow.
Figuring out what fits and questions about boundary conditions are quite
confusing. If the field positioning routines are not working for you.
Please let me know, and I will share the test stack I used to try my
best to understand these issues.
On 11/21/14 4:30 PM, Michael Doub wrote:
> I just pulled this back for more testing. I found a bug in the data
> generator that was not inserting the spaceabove and below properly...
> I deserves more testing.
>
> Sorry folks. A bit red faced here.
>
> -= Mike
>
>
> On 11/21/14 12:18 PM, Michael Doub wrote:
>> For the folks that we paying attention to the discussion about how to
>> position the scroll to a particular line in a field, this might be of
>> interest to you. I think I cracked the nut on how to figure out the
>> scroll position for any character within a field. This includes
>> getting the scroll for a character in a wrapped line. It also
>> addresses spacebefore, spaceafter, firstindent, leftindent and
>> rightIndent. I have done a fair amount of testing trying to catch
>> the corner cases, but if you do find any issues please let me know.
>> This was done with LC 6.6.4.
>>
>> -= Mike
>>
>> https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0
>>
>> Release 12
>> * Added __positionCharInFld, adjusts the scroll of a field to have
>> the designated character be at the top,
>> center or bottom of the field.
>> * Added __SoftLineBreaks, returns information about how the text
>> within a field has been soft wrapped.
>>
>> Both of these functions were a bit challenging, please let me know if
>> you discover any issues.
>>
>> * Added __DummyTextData, this generates data to go into a field
>> with all of the different sizing
>> conditions. This generated the data that I used to test the
>> functions above.
>
More information about the use-livecode
mailing list