Set Text Size is empty but then not empty

Sarah Reichelt sarah.reichelt at gmail.com
Sun Jan 8 00:43:16 EST 2006


> So then the question could be rephrased:
>
> Once having selected text in a fld and manuall yset a font size of
> text font. .. how can then one subsequently clear those values
> (setting them to empty with a button is not working) so that they are
> *really, really* empty and will then revert to "inherit" mode and can
> be changed under script control. such that "set the textsize of fld
> fooDa to 12" will cause the text in the field to change size.
>

I have seen this before and haven't worked out why it happens, but the
way around it is to use:

    set the textsize of char 1 to -1 of fld da to empty
    set the textsize of char 1 to -1 of  fld da to tSize

HTH,
Sarah



More information about the use-livecode mailing list