Line Attributes of Char Chunks

Curry Kenworthy curry at pair.com
Thu Jan 29 15:32:40 EST 2015


Howdy Folks,

Field containing "blah blah".

Message box: "put effective textalign of char 1 of field 1"

LC 6.7: "left"

LC 7.01: "No such proper-tay, homie"

(object does not have this property)

So, now it's necessary to refer to the corresponding line chunk, using 
lineIndex for example, if you want any paragraph-level attributes.

Previously LC would automatically provide the corresponding properties. 
This is true for several properties and not just textAlign.

Was this an LC 7 oversight or intended change? Should I file a report or 
leave it alone?

IMO, yes it's true that chars don't have paragraph properties. However, 
each char belongs to only one paragraph, which has those properties, 
which affects that char, so the old way was convenient and equally logical.

With the addition of tabAlign in LC 7, now alignment doesn't belong only 
to paragraphs anymore. That makes the old way look pretty relevant in 
the new environment....

Best wishes,

Curry Kenworthy

Custom Software Development
http://curryk.com/consulting/





More information about the use-livecode mailing list