Foregroundcolor and chunk formatting in general
Ivers, Doug E
Doug_Ivers at lord.com
Mon Dec 9 09:31:01 EST 2002
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
> -----Original Message-----
> From: Jan Schenkel [mailto:janschenkel at yahoo.com]
> Sent: Sunday, December 08, 2002 6:38 AM
> To: use-revolution at lists.runrev.com
> Subject: Re: Foregroundcolor stuck?
>
>
> --- DVGlasgow at aol.com wrote:
> >
> > In a message dated 6/12/02 4:58:17 PM,
> > use-revolution-request at lists.runrev.com writes:
> >
> > << The thing is that once you set the colour of
> > certain
> >
> > words, you have to reset the colour of the entire
> >
> > "chunk" of text, because otherwise it's overridden
> > by
> >
> > the colour of the individual words.
> >
> >
> > Try this:
> >
> >
> > on greyme
> >
> > set the textColor of char 1 to -1 of me to "gray"
> >
> > end greyme
> >
> >
> > Hope this helped,
> >
> >
> > Jan Schenkel. >>
> >
> > Of course!
> >
> > Thanks Jan. I don't even need to try this to be
> > sure you are right!
> >
> > I am not sure it is entirely logical though
> > ----Standing by for someone to
> > explain to me why it is ;-)
> >
> >
> > Best wishes,
> >
> > David Glasgow
> >
>
> Look at it this way: you can 'layer' one coat of paint
> onto another. By default, the text uses the colour
> settings of the field (or, if these settings haven't
> been specified, the colour setting "up the chain") ;
> but when you set the colour of a specific chunk, it
> saves this colour with the chunk.
> So when the engine draws the text, it first looks at
> the settings of the chunk, then the settings of the
> field, then higher "up the chain" to determine the
> applicable colour settings.
> Which means that in order to make all the words in a
> field gray after their colour was changed, you have to
> change their individual settings.
>
> Hope this cleared a few things up,
>
> Jan Schenkel.
>
> =====
> "As we grow older, we grow both wiser and more foolish at the
> same time." (La Rochefoucauld)
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list