MathGroup Archive 2002

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

Search the Archive

Re: buttons


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.
>
>--
>-David
>(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, 
CellTags];
         SelectionEvaluate[ButtonNotebook[]])] // DisplayForm

--------------------------------------------------------------
Omega Consulting
"The final answer to your Mathematica needs"

Spend less time searching and more time finding.
http://www.wz.com/internet/Mathematica.html



  • 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...