Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: changing color of non-evaluatable cell

  • To: mathgroup at smc.vnet.net
  • Subject: [mg85205] Re: changing color of non-evaluatable cell
  • From: David Reiss <dbreiss at gmail.com>
  • Date: Sat, 2 Feb 2008 03:23:38 -0500 (EST)
  • References: <fnuh12$9lr$1@smc.vnet.net>

Here's an example of something like this...

ExpressionCell[Defer[1 + 1], "Input",
  Background -> Dynamic[
    Switch[CurrentValue[Evaluatable],

     True,
     Lighter@Green,

     False,
     Lighter@Red

     ]]
  ] // CellPrint


Hope this helps,

David


On Feb 1, 2:16=A0am, Makinator <luvly.jubbly.makina... at gmail.com> wrote:
> Please could someone help me,
> I would like to to set-up mathematica's notebook to automatically
> change color to some custom color, when I set this cell as non-
> evaluatable. And vice versa, when I set it to evaluatable to change
> color to default.
>
> THX



  • Prev by Date: Re: For Loop and NDSolve
  • Next by Date: Re: Mathematica And Cron
  • Previous by thread: changing color of non-evaluatable cell
  • Next by thread: Re: changing color of non-evaluatable cell