Foregroundcolor and chunk formatting in general

Jan Schenkel 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
> 

Hi Doug,

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,

Jan Schenkel.

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



More information about the Use-livecode mailing list