Foregroundcolor and chunk formatting in general
janschenkel at yahoo.com
Mon Dec 9 11:56:01 EST 2002
--- "Ivers, Doug E" <Doug_Ivers at lord.com> wrote:
> How do I remove any chunk-specific coloring that may
> exist in a field?
> set the textColor of char 1 to -1 of me to empty
> How do I remove other chunk-specific formatting?
> set the textFont of char 1 to -1 of me to empty
> set the textStyle of char 1 to -1 of me to plain
> Note that, if the FIELD's textStyle is bold, then I
> want to revert to that.
> -- D
Actually, the simplest way to erase all attributes for
the entire content of the field, is :
set the text of fld "foo" to the text of fld "foo"
This resets the htmlText property where all the
formatting per chunk is stored.
Hope this helped,
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
More information about the Use-livecode