MathGroup Archive 2002

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

Search the Archive

Re: buttons

  • To: mathgroup at
  • Subject: [mg32547] Re: [mg32475] buttons
  • From: Omega Consulting <omega_consulting at>
  • Date: Sat, 26 Jan 2002 04:08:11 -0500 (EST)
  • Sender: owner-wri-mathgroup at

At 02:20 AM 1/22/2002, David P. Johnson wrote:
>Anyone using buttons in notebooks? I'd like to simply put a button at
>the end of my notebook that will cause two cells to be calculated each
>time I hit it. Couldn't quite figure it out from the documentation. Any
>help appreciated.
>(Signature continues here)
>N.B.: Remove the 'x' to email me

Add the celltag "MyTwoCells" to the cells you want to evaluate and this 
button will do the trick

ButtonBox["Evaluate", Active -> True,
     ButtonFunction :> (NotebookFind[ButtonNotebook[], "MyTwoCells", All, 
         SelectionEvaluate[ButtonNotebook[]])] // DisplayForm

Omega Consulting
"The final answer to your Mathematica needs"

Spend less time searching and more time finding.

  • Prev by Date: Re: Indents, paragraphs, etc.
  • Next by Date: Re: principle root? problem
  • Previous by thread: buttons
  • Next by thread: confusion with triple integral...