Passing Lists

Jeanne A. E. DeVoto jeanne at runrev.com
Wed Jan 15 15:12:01 EST 2003


At 11:08 AM -0800 1/15/03, Richard Gaskin wrote:
>This raises a point:  when styles for a specified chunk are mixed, getting
>the textstyle returns "mixed".  That's not so bad and I understand why it
>does that, but in such cases you cannot set the textstyle to the same value
>you get from querrying it.
>
>Any suggestions for a more self-constent form that would allow simple syntax
>like this to work?:
>
> set the textstyle of btn 1 to the textstyle of char 20 to 30 of fld 1

It depends: what do you want the above statement to do? A button can't have
mixed text: the button's entire label has to be a single style or set of
styles.

So if char 20 to 25 of the field is bold italic, say, and char 26 to 30 is
condensed underline, the statement above is ambiguous: do you want the
button to be bold italic? Condensed underline? Bold italic condensed
underline?

--
Jeanne A. E. DeVoto ~ jeanne at runrev.com
Runtime Revolution Limited - The Solution for Software Development
http://www.runrev.com/





More information about the use-livecode mailing list